summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSteven M. Gava <elguavas@python.net>2002-01-03 12:02:37 (GMT)
committerSteven M. Gava <elguavas@python.net>2002-01-03 12:02:37 (GMT)
commit361cfcd69b62b37acebe99417fa13a1e62a1ca7b (patch)
tree984d08c327b166d7838977fa379887a6329f53c5
parentdc72f48e262a7aaf177a37676c79ced4ddce0fff (diff)
downloadcpython-361cfcd69b62b37acebe99417fa13a1e62a1ca7b.zip
cpython-361cfcd69b62b37acebe99417fa13a1e62a1ca7b.tar.gz
cpython-361cfcd69b62b37acebe99417fa13a1e62a1ca7b.tar.bz2
fixups and improvements
-rw-r--r--Lib/idlelib/tabpage.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/Lib/idlelib/tabpage.py b/Lib/idlelib/tabpage.py
index fcd074c..dc1ca8b 100644
--- a/Lib/idlelib/tabpage.py
+++ b/Lib/idlelib/tabpage.py
@@ -11,7 +11,7 @@ class PageTab(Frame):
def __init__(self,parent):
Frame.__init__(self, parent,borderwidth=2,relief=RIDGE)
self.button=Radiobutton(self,padx=5,pady=5,takefocus=FALSE,
- underline=0,indicatoron=FALSE,highlightthickness=0,
+ indicatoron=FALSE,highlightthickness=0,
borderwidth=0,selectcolor=self.cget('bg'))
self.button.pack()
@@ -19,7 +19,7 @@ class TabPageSet(Frame):
"""
a set of 'pages' with TabButtons for controlling their display
"""
- def __init__(self,parent,pageNames,**kw):
+ def __init__(self,parent,pageNames=[],**kw):
"""
pageNames - a list of strings, each string will be the dictionary key
to a page's data, and the name displayed on the page's tab. Should be
@@ -106,5 +106,6 @@ if __name__ == '__main__':
buttonRemove.pack(padx=5,pady=5)
labelPgName.pack(padx=5)
entryPgName.pack(padx=5)
+ tabPage.ChangePage()
root.mainloop()