summaryrefslogtreecommitdiffstats
path: root/Demo/tix/tixwidgets.py
diff options
context:
space:
mode:
authorNeal Norwitz <nnorwitz@gmail.com>2002-12-10 02:18:49 (GMT)
committerNeal Norwitz <nnorwitz@gmail.com>2002-12-10 02:18:49 (GMT)
commit731a986dfa321252e0c91d5dbf49670bd151382c (patch)
tree25333bd9ec749fd78bd21f9b93cf42646979cc34 /Demo/tix/tixwidgets.py
parentbca1cbc6f895c7f9f003877b1cfc0c649387ae1c (diff)
downloadcpython-731a986dfa321252e0c91d5dbf49670bd151382c.zip
cpython-731a986dfa321252e0c91d5dbf49670bd151382c.tar.gz
cpython-731a986dfa321252e0c91d5dbf49670bd151382c.tar.bz2
Upgrade to Tix-8.1.4 from Mike Clarkson (the maintainer)
Diffstat (limited to 'Demo/tix/tixwidgets.py')
-rw-r--r--Demo/tix/tixwidgets.py7
1 files changed, 1 insertions, 6 deletions
diff --git a/Demo/tix/tixwidgets.py b/Demo/tix/tixwidgets.py
index 30507c4..f6bb70e 100644
--- a/Demo/tix/tixwidgets.py
+++ b/Demo/tix/tixwidgets.py
@@ -1,6 +1,5 @@
# -*-mode: python; fill-column: 75; tab-width: 8; coding: iso-latin-1-unix -*-
#
-# Id: tixwidgets.py,v 1.7 2002/11/14 02:44:08 nnorwitz Exp
# $Id$
#
# tixwidgets.py --
@@ -545,11 +544,7 @@ def MkSWindow(w):
win = Tix.ScrolledWindow(top, scrollbar='auto')
- global image1
- # This image is not showing up in the Label unless it is set to a
- # global variable - no problem under Tcl/Tix. It is being
- # garbage collected at the end of this proecedure if not global
- image1 = Tix.Image('photo', file=file)
+ image1 = win.window.image_create('photo', file=file)
lbl = Tix.Label(win.window, image=image1)
lbl.pack(expand=1, fill=Tix.BOTH)