direct.tkwidgets.AppShell¶
from direct.tkwidgets.AppShell import AppShell, TestAppShell, resetVariableDict, resetWidgetDict
AppShell provides a GUI application framework. This is an adaption of AppShell.py found in Python and Tkinter Programming by John E. Grayson which is a streamlined adaptation of GuiAppD.py, originally created by Doug Hellmann (doughellmann@mindspring.com).
Inheritance diagram
-
class
AppShell
(parent=None, **kw)[source]¶ Bases:
_Pmw.Pmw_2_0_1.lib.PmwBase.MegaWidget
,direct.showbase.DirectObject.DirectObject
Make all buttons wide as widest
-
appname
= 'Generic Application Frame'¶
-
appversion
= '1.0'¶
-
balloonState
= 'none'¶
-
contactemail
= 'Mark.Mine@disney.com'¶
-
contactname
= 'Mark R. Mine'¶
-
contactphone
= '(818) 544-2921'¶
-
copyright
= 'Copyright 2004 Walt Disney Imagineering. All Rights Reserved'¶
-
createWidget
(self, parent, category, text, widgetClass, help, command, side, fill, expand, kw)[source]¶
-
frameHeight
= 320¶
-
frameWidth
= 450¶
-
newCreateButton
(self, parent, category, text, help='', command=None, side='left', fill='x', expand=0, **kw)[source]¶ createButton(parent, category, text, [options])
createCheckbutton(parent, category, text, [options])
-
newCreateColorEntry
(self, parent, category, text, help='', command=None, side='left', fill='x', expand=0, **kw)[source]¶
-
newCreateComboBox
(self, parent, category, text, help='', command=None, items=[], state='disabled', history=0, labelpos='w', label_anchor='w', label_width=16, entry_width=16, side='left', fill='x', expand=0, **kw)[source]¶
-
newCreateDial
(self, parent, category, text, help='', command=None, side='left', fill='x', expand=0, **kw)[source]¶
-
newCreateEntryScale
(self, parent, category, text, help='', command=None, side='left', fill='x', expand=0, **kw)[source]¶
-
newCreateFloater
(self, parent, category, text, help='', command=None, side='left', fill='x', expand=0, **kw)[source]¶
-
newCreateLabeledEntry
(self, parent, category, text, help='', command=None, value='', width=12, relief='sunken', side='left', fill='x', expand=0)[source]¶ createLabeledEntry(parent, category, text, [options])
-
newCreateOptionMenu
(self, parent, category, text, help='', command=None, items=[], labelpos='w', label_anchor='w', label_width=16, menu_tearoff=1, side='left', fill='x', expand=0, **kw)[source]¶
createRadiobutton(parent, category, text, variable, value, [options])
-
newCreateSider
(self, parent, category, text, help='', command=None, side='left', fill='x', expand=0, **kw)[source]¶
-
newCreateVector2Entry
(self, parent, category, text, help='', command=None, side='left', fill='x', expand=0, **kw)[source]¶
-
newCreateVector3Entry
(self, parent, category, text, help='', command=None, side='left', fill='x', expand=0, **kw)[source]¶
-
padx
= 5¶
-
pady
= 5¶
-
panelCount
= 0¶
-
usecommandarea
= 0¶
-
usestatusarea
= 0¶