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__(parent=None, **kw)[source]
addVariable(category, text, variable)[source]
addWidget(category, text, widget)[source]
alignbuttons()[source]

Make all buttons wide as widest

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

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

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

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

newCreateColorEntry(parent, category, text, help='', command=None, side='left', fill='x', expand=0, **kw)[source]
newCreateComboBox(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(parent, category, text, help='', command=None, side='left', fill='x', expand=0, **kw)[source]
newCreateEntryScale(parent, category, text, help='', command=None, side='left', fill='x', expand=0, **kw)[source]
newCreateFloater(parent, category, text, help='', command=None, side='left', fill='x', expand=0, **kw)[source]
newCreateLabeledEntry(parent, category, text, help='', command=None, value='', width=12, relief='sunken', side='left', fill='x', expand=0)[source]

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

newCreateOptionMenu(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(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(parent, category, text, help='', command=None, side='left', fill='x', expand=0, **kw)[source]
newCreateVector2Entry(parent, category, text, help='', command=None, side='left', fill='x', expand=0, **kw)[source]
newCreateVector3Entry(parent, category, text, help='', command=None, side='left', fill='x', expand=0, **kw)[source]
onDestroy(event)[source]
padx = 5
pady = 5
panelCount = 0
quit()[source]
showAbout()[source]
toggleBalloon()[source]
transformRGB(rgb, max=1.0)[source]
updateProgress(newValue=0, newMax=0)[source]
usecommandarea = 0
usestatusarea = 0
class TestAppShell(parent=None, **kw)[source]

Bases: AppShell

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