summaryrefslogtreecommitdiffstats
path: root/Demo
diff options
context:
space:
mode:
authorNeal Norwitz <nnorwitz@gmail.com>2002-12-30 23:52:01 (GMT)
committerNeal Norwitz <nnorwitz@gmail.com>2002-12-30 23:52:01 (GMT)
commitd8b5e3fda1d82dfc1f56a31e48124ff4e5a02bdc (patch)
treeef2acca971ddf820870e99913f6c9368fca936bd /Demo
parent8d5dd98a2e69591ee527d0063a0d237e87bb80e7 (diff)
downloadcpython-d8b5e3fda1d82dfc1f56a31e48124ff4e5a02bdc.zip
cpython-d8b5e3fda1d82dfc1f56a31e48124ff4e5a02bdc.tar.gz
cpython-d8b5e3fda1d82dfc1f56a31e48124ff4e5a02bdc.tar.bz2
Tix update from Mike Clarkson (maintainer)
Diffstat (limited to 'Demo')
-rw-r--r--Demo/tix/BUGS.txt8
-rw-r--r--Demo/tix/tixwidgets.py17
2 files changed, 15 insertions, 10 deletions
diff --git a/Demo/tix/BUGS.txt b/Demo/tix/BUGS.txt
deleted file mode 100644
index 052a1e6..0000000
--- a/Demo/tix/BUGS.txt
+++ /dev/null
@@ -1,8 +0,0 @@
-$Id$
-
-1) There seems to be a problem with ComboBox that shows up
-in the ExFileSelectBox demo. The popdown scrolled list widget
-is being created, then destroyed. This does not happen in Tcl Tix.
-This is probably a sympton in Tix from _tkinter; if you find the cause
-of this, please post a patch on http://tix.sourceforge.net.
-
diff --git a/Demo/tix/tixwidgets.py b/Demo/tix/tixwidgets.py
index f6bb70e..ae7b063 100644
--- a/Demo/tix/tixwidgets.py
+++ b/Demo/tix/tixwidgets.py
@@ -560,6 +560,9 @@ def MkSWindow(w):
top.pack(expand=1, fill=Tix.BOTH)
bot.pack(fill=Tix.BOTH)
+ win.bind('<Map>', func=lambda arg=0, rh=rh, win=win:
+ win.tk.call('tixDoWhenIdle', str(rh), 'attachwidget', str(win)))
+
def SWindow_reset(rh, win):
win.place(x=30, y=150, width=190, height=120)
win.update()
@@ -575,8 +578,18 @@ def MkSText(w):
text='The Tix ScrolledWindow widget allows you to scroll any kind of Tk widget. It is more versatile than a scrolled canvas widget.')
win = Tix.ScrolledText(top, scrollbar='auto')
-# win.text['wrap'] = 'none'
- win.text.insert(Tix.END, 'This is a text widget embedded in a scrolled window. Although the original Tix demo does not have any text here, I decided to put in some so that you can see the effect of scrollbars etc.')
+ win.text['wrap'] = 'none'
+ win.text.insert(Tix.END, '''When -scrollbar is set to "auto", the
+scrollbars are shown only when needed.
+Additional modifiers can be used to force a
+scrollbar to be shown or hidden. For example,
+"auto -y" means the horizontal scrollbar
+should be shown when needed but the vertical
+scrollbar should always be hidden;
+"auto +x" means the vertical scrollbar
+should be shown when needed but the horizontal
+scrollbar should always be shown, and so on.'''
+)
win.place(x=30, y=150, width=190, height=100)
rh = Tix.ResizeHandle(top, bg='black',