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

Inheritance diagram of direct.tkwidgets.AppShell

class AppShell(parent=None, **kw)[source]

Bases: MegaWidget, DirectObject

__init__(self, parent=None, **kw)[source]
addVariable(self, category, text, variable)[source]
addWidget(self, category, text, widget)[source]
alignbuttons(self)[source]

Make all buttons wide as widest

appInit(self)[source]
appname = 'Generic Application Frame'
appversion = '1.0'
balloon(self)[source]
balloonState = 'none'
bind(self, child, balloonHelpMsg, statusHelpMsg=None)[source]
buttonAdd(self, buttonName, helpMessage=None, statusMessage=None, **kw)[source]
buttonBox(self)[source]
contactemail = 'Mark.Mine@disney.com'
contactname = 'Mark R. Mine'
contactphone = '(818) 544-2921'
copyright = 'Copyright 2004 Walt Disney Imagineering. All Rights Reserved'
createInterface(self)[source]
createMenuBar(self)[source]
createWidget(self, parent, category, text, widgetClass, help, command, side, fill, expand, kw)[source]
frameHeight = 320
frameWidth = 450
getVariable(self, category, text)[source]
getWidget(self, category, text)[source]
interior(self)[source]
messageBar(self)[source]
newCreateButton(self, parent, category, text, help='', command=None, side='left', fill='x', expand=0, **kw)[source]

createButton(parent, category, text, [options])

newCreateCheckbutton(self, parent, category, text, help='', command=None, initialState=0, anchor='w', side='left', fill='x', expand=0, **kw)[source]

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]
newCreateRadiobutton(self, parent, category, text, variable, value, command=None, help='', anchor='w', 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]
onDestroy(self, event)[source]
padx = 5
pady = 5
panelCount = 0
quit(self)[source]
showAbout(self)[source]
toggleBalloon(self)[source]
transformRGB(self, rgb, max=1.0)[source]
updateProgress(self, newValue=0, newMax=0)[source]
usecommandarea = 0
usestatusarea = 0
class TestAppShell(parent=None, **kw)[source]

Bases: AppShell

__init__(self, parent=None, **kw)[source]
appname = 'Test Application Shell'
createButtons(self)[source]
createInterface(self)[source]
createMain(self)[source]
usecommandarea = 1
usestatusarea = 1
resetVariableDict()[source]
resetWidgetDict()[source]