Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
361cfcd6
Commit
361cfcd6
authored
Jan 03, 2002
by
Steven M. Gava
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixups and improvements
parent
dc72f48e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
Lib/idlelib/tabpage.py
Lib/idlelib/tabpage.py
+3
-2
No files found.
Lib/idlelib/tabpage.py
View file @
361cfcd6
...
...
@@ -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
()
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment