Skip to content

Commit c44403e

Browse files
author
kurt.kaiser
committed
check in Tal Einat's update to tabpage.py
Patch 1612746 M configDialog.py M NEWS.txt AM tabbedpages.py git-svn-id: http://svn.python.org/projects/python/trunk@58710 6015fed2-1504-0410-9fe1-9d1591cc4771
1 parent 413191f commit c44403e

3 files changed

Lines changed: 489 additions & 9 deletions

File tree

Lib/idlelib/NEWS.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@ What's New in IDLE 2.6a1?
33

44
*Release date: XX-XXX-200X*
55

6+
- tabpage.py updated: tabbedPages.py now supports multiple dynamic rows
7+
of tabs. Patch 1612746 Tal Einat.
8+
69
- Add confirmation dialog before printing. Patch 1717170 Tal Einat.
710

811
- Show paste position if > 80 col. Patch 1659326 Tal Einat.

Lib/idlelib/configDialog.py

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515

1616
from configHandler import idleConf
1717
from dynOptionMenuWidget import DynOptionMenu
18-
from tabpage import TabPageSet
18+
from tabbedpages import TabbedPageSet
1919
from keybindingDialog import GetKeysDialog
2020
from configSectionNameDialog import GetCfgSectionNameDialog
2121
from configHelpSourceEdit import GetHelpSourceDialog
@@ -65,10 +65,9 @@ def __init__(self,parent,title):
6565
self.wait_window()
6666

6767
def CreateWidgets(self):
68-
self.tabPages = TabPageSet(self,
69-
pageNames=['Fonts/Tabs','Highlighting','Keys','General'])
70-
self.tabPages.ChangePage()#activates default (first) page
71-
frameActionButtons = Frame(self)
68+
self.tabPages = TabbedPageSet(self,
69+
page_names=['Fonts/Tabs','Highlighting','Keys','General'])
70+
frameActionButtons = Frame(self,pady=2)
7271
#action buttons
7372
self.buttonHelp = Button(frameActionButtons,text='Help',
7473
command=self.Help,takefocus=FALSE,
@@ -103,7 +102,7 @@ def CreatePageFontTab(self):
103102
self.editFont=tkFont.Font(self,('courier',10,'normal'))
104103
##widget creation
105104
#body frame
106-
frame=self.tabPages.pages['Fonts/Tabs']['page']
105+
frame=self.tabPages.pages['Fonts/Tabs'].frame
107106
#body section frames
108107
frameFont=LabelFrame(frame,borderwidth=2,relief=GROOVE,
109108
text=' Base Editor Font ')
@@ -167,7 +166,7 @@ def CreatePageHighlight(self):
167166
self.highlightTarget=StringVar(self)
168167
##widget creation
169168
#body frame
170-
frame=self.tabPages.pages['Highlighting']['page']
169+
frame=self.tabPages.pages['Highlighting'].frame
171170
#body section frames
172171
frameCustom=LabelFrame(frame,borderwidth=2,relief=GROOVE,
173172
text=' Custom Highlighting ')
@@ -255,7 +254,7 @@ def CreatePageKeys(self):
255254
self.keyBinding=StringVar(self)
256255
##widget creation
257256
#body frame
258-
frame=self.tabPages.pages['Keys']['page']
257+
frame=self.tabPages.pages['Keys'].frame
259258
#body section frames
260259
frameCustom=LabelFrame(frame,borderwidth=2,relief=GROOVE,
261260
text=' Custom Key Bindings ')
@@ -325,7 +324,7 @@ def CreatePageGeneral(self):
325324
self.helpBrowser=StringVar(self)
326325
#widget creation
327326
#body
328-
frame=self.tabPages.pages['General']['page']
327+
frame=self.tabPages.pages['General'].frame
329328
#body section frames
330329
frameRun=LabelFrame(frame,borderwidth=2,relief=GROOVE,
331330
text=' Startup Preferences ')

0 commit comments

Comments
 (0)