wx.TextEntryDialog¶This class represents a dialog that requests a one-line text string from the user.
It is implemented as a generic wxWidgets dialog.
See also
Class Hierarchy¶
Inheritance diagram for class TextEntryDialog:
Known Subclasses¶
Methods Summary¶Default constructor. |
|
Returns the text that the user has entered if the user has pressed |
|
This function sets the maximum number of characters the user can enter into this dialog. |
|
Sets the default text value. |
|
Shows the dialog, returning |
Properties Summary¶
Class API¶Possible constructors:
TextEntryDialog()
TextEntryDialog(parent, message, caption=GetTextFromUserPromptStr,
value="", style=TextEntryDialogStyle, pos=DefaultPosition)
This class represents a dialog that requests a one-line text string from the user.
__init__ (self)
Default constructor.
Call Create to really create the dialog later.
New in version 2.9.5.
__init__ (self, parent, message, caption=GetTextFromUserPromptStr, value=””, style=TextEntryDialogStyle, pos=DefaultPosition)
Constructor.
Use ShowModal to show the dialog.
See Create method for parameter description.
parent (wx.Window) – Parent window.
message (string) – Message to show on the dialog.
caption (string) – The caption of the dialog.
value (string) – The default value, which may be the empty string.
style (long) – A dialog style, specifying the buttons (wx``wx.OK``, wx.CANCEL) and an optional wx.CENTRE style. Additionally, wx.TextCtrl styles (such as TE_PASSWORD or TE_MULTILINE ) may be specified here.
pos (wx.Point) – Dialog position.
bool
New in version 2.9.5.
variant (WindowVariant) –
Returns the text that the user has entered if the user has pressed wx.OK, or the original value if the user has pressed Cancel.
string
This function sets the maximum number of characters the user can enter into this dialog.
len (long) –
New in version 2.9.5.
See also
Sets the default text value.
value (string) –