diff options
author | Neal Norwitz <nnorwitz@gmail.com> | 2002-12-10 02:18:49 +0000 |
---|---|---|
committer | Neal Norwitz <nnorwitz@gmail.com> | 2002-12-10 02:18:49 +0000 |
commit | a950a4b6dea092d409ddb68cd63a538702bfca71 (patch) | |
tree | f5ae65badbeca08320a64dbb3450e9f7d44745ec /Demo/tix | |
parent | 7288038e50621ad0a1cbf8f24fa3b5c74b4c4565 (diff) | |
download | cpython-a950a4b6dea092d409ddb68cd63a538702bfca71.tar.gz |
Upgrade to Tix-8.1.4 from Mike Clarkson (the maintainer)
Diffstat (limited to 'Demo/tix')
-rw-r--r-- | Demo/tix/tixwidgets.py | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/Demo/tix/tixwidgets.py b/Demo/tix/tixwidgets.py index 30507c468e..f6bb70e438 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) |