Curso Python DGA 2011/inmersion python/chuleta easygui

De WikiEducator
< Curso Python DGA 2011‎ | inmersion python
Revisión a fecha de 04:25 2 sep 2011; Lmorillas (Discusión | contribuciones)

(dif) ← Revisión anterior | Revisión actual (dif) | Revisión siguiente → (dif)
Saltar a: navegación, buscar

Chuleta easygui

http://easygui.sourceforge.net

Widgets

ynbox(msg='Shall I continue?', title=' ', choices=('Yes', 'No'), image=None)
# Display a msgbox with choices of Yes and No.
 
ccbox(msg='Shall I continue?', title=' ', choices=('Continue', 'Cancel'), image=None)
# Display a msgbox with choices of Continue and Cancel.
 
boolbox(msg='Shall I continue?', title=' ', choices=('Yes', 'No'), image=None)
# Display a boolean msgbox.
 
indexbox(msg='Shall I continue?', title=' ', choices=('Yes', 'No'), image=None)
# Display a buttonbox with the specified choices.
 
msgbox(msg='(Your message goes here)', title=' ', ok_button='OK', image=None, root=None)
# Display a messagebox
 
buttonbox(msg='', title=' ', choices=('Button1', 'Button2', 'Button3'), image=None, root=None)
# Display a msg, a title, and a set of buttons.
 
integerbox(msg='', title=' ', default='', lowerbound=0, upperbound=99, image=None, root=None,**invalidKeywordArguments)
# Show a box in which a user can enter an integer.
 
multenterbox(msg='Fill in values for the fields.', title=' ', fields=(), values=())
# Show screen with multiple data entry fields.
 
multpasswordbox(msg='Fill in values for the fields.', title=' ', fields=(), values=())
# Same interface as multenterbox.
 
enterbox(msg='Enter something.', title=' ', default='', strip=True, image=None, root=None)
# Show a box in which a user can enter some text.
 
passwordbox(msg='Enter your password.', title=' ', default='', image=None, root=None)
# Show a box in which a user can enter a password.
 
multchoicebox(msg='Pick as many items as you like.', title=' ', choices=(), **kwargs)
# Present the user with a list of choices.
 
choicebox(msg='Pick something.', title=' ', choices=())
# Present the user with a list of choices.
 
abouteasygui()
#shows the easygui revision history

Variables

	egversion = '0.96(2010-06-25)'
	runningPython26 = True
	runningPython3 = False
	stars = "*"* 75
	rootWindowPosition = '+300+200'
	PROPORTIONAL_FONT_FAMILY = ('MS', 'Sans', 'Serif')
	MONOSPACE_FONT_FAMILY = 'Courier'
	PROPORTIONAL_FONT_SIZE = 10
	MONOSPACE_FONT_SIZE = 9
	TEXT_ENTRY_FONT_SIZE = 12
	STANDARD_SELECTION_EVENTS = ['Return', 'Button-1', 'space']
	__choiceboxMultipleSelect = None
	__widgetTexts = None
	__replyButtonText = None
	__choiceboxResults = None
	__firstWidget = None
	__enterboxText = None
	__enterboxDefaultText = 
	__multenterboxText = 
	choiceboxChoices = None
	choiceboxWidget = None
	entryWidget = None
	boxRoot = None
	ImageErrorMsg = '\n\n-----------------------------------------...
	EASYGUI_ABOUT_INFORMATION = '\n===============================...
	__package__ = None