This class represents a dialog that requests a one-line text string from the user.
It is implemented as a generic wxWidgets dialog.
Class Hierarchy¶Inheritance diagram for class
TextEntryDialog:
Control Appearance¶ Known Subclasses¶ Methods Summary¶Default constructor.
Convert all text entered into the text control used by the dialog to upper case.
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.
This function sets the maximum number of characters the user can enter into this dialog.
Sets the default text value.
Shows the dialog, returning wx.ID_OK
if the user pressed wx.OK
, and wx.ID_CANCEL
otherwise.
Possible constructors:
TextEntryDialog() -> None TextEntryDialog(parent, message, caption=GetTextFromUserPromptStr, value='', style=TextEntryDialogStyle, pos=DefaultPosition) -> None
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.
None
Added 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.
None
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, most wx.TextCtrl styles (such as TE_PASSWORD
or TE_MULTILINE
) may be specified here, but TE_READONLY
may not be used, as it doesnât make sense for this dialog, used for text input.
pos (wx.Point) â Dialog position.
bool
Added in version 2.9.5.
Convert all text entered into the text control used by the dialog to upper case.
Call this method to ensure that all text entered into the text control used by the dialog is converted on the fly to upper case. If the text control is not empty, its existing contents is also converted to upper case.
None
Added in version 4.1/wxWidgets-3.1.0.
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.
str
This function sets the maximum number of characters the user can enter into this dialog.
len (long)
None
Added in version 2.9.5.
Sets the default text value.
value (string)
None
Shows the dialog, returning wx.ID_OK
if the user pressed wx.OK
, and wx.ID_CANCEL
otherwise.
Call GetValue
to retrieve the values of the string entered by the user after showing the dialog.
int
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4