Diferencia entre revisiones de «Curso Python DGA 2011/inmersion python/chuleta easygui»

De WikiEducator
Saltar a: navegación, buscar
(Página creada con '=Chuleta easygui= http://easygui.sourceforge.net == Widgets== <source lang="python"> ynbox(msg='Shall I continue?', title=' ', choices=('Yes', 'No'), image=None) # Display a m…')
 
(Variables)
Línea 49: Línea 49:
  
 
==Variables==
 
==Variables==
egversion = '0.96(2010-06-25)'
+
egversion = '0.96(2010-06-25)'
runningPython26 = True
+
runningPython26 = True
runningPython3 = False
+
runningPython3 = False
stars = "*"* 75
+
stars = "*"* 75
rootWindowPosition = '+300+200'
+
rootWindowPosition = '+300+200'
PROPORTIONAL_FONT_FAMILY = ('MS', 'Sans', 'Serif')
+
PROPORTIONAL_FONT_FAMILY = ('MS', 'Sans', 'Serif')
MONOSPACE_FONT_FAMILY = 'Courier'
+
MONOSPACE_FONT_FAMILY = 'Courier'
PROPORTIONAL_FONT_SIZE = 10
+
PROPORTIONAL_FONT_SIZE = 10
MONOSPACE_FONT_SIZE = 9
+
MONOSPACE_FONT_SIZE = 9
TEXT_ENTRY_FONT_SIZE = 12
+
TEXT_ENTRY_FONT_SIZE = 12
STANDARD_SELECTION_EVENTS = ['Return', 'Button-1', 'space']
+
STANDARD_SELECTION_EVENTS = ['Return', 'Button-1', 'space']
__choiceboxMultipleSelect = None
+
__choiceboxMultipleSelect = None
__widgetTexts = None
+
__widgetTexts = None
__replyButtonText = None
+
__replyButtonText = None
__choiceboxResults = None
+
__choiceboxResults = None
__firstWidget = None
+
__firstWidget = None
__enterboxText = None
+
__enterboxText = None
__enterboxDefaultText = ''
+
__enterboxDefaultText = ''
__multenterboxText = ''
+
__multenterboxText = ''
choiceboxChoices = None
+
choiceboxChoices = None
choiceboxWidget = None
+
choiceboxWidget = None
entryWidget = None
+
entryWidget = None
boxRoot = None
+
boxRoot = None
ImageErrorMsg = '\n\n-----------------------------------------...
+
EASYGUI_ABOUT_INFORMATION = '\n===============================...
+
__package__ = None
+

Revisión de 05:27 2 sep 2011

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