This class represents a dialog that requests a numeric input from the user.
Currently it is implemented as a generic wxWidgets dialog under all platforms.
You can use a convenience wx.GetNumberFromUser
function instead of using this dialog.
See also
NumberEntryDialog Overview
Default constructor. |
|
Returns the value that the user has entered if the user has pressed |
See |
wx.
NumberEntryDialog
(Dialog)¶Possible constructors:
NumberEntryDialog() -> None
NumberEntryDialog(parent : Window, message : str, prompt : str, caption
: str, value : int, min : int, max : int, pos: Point=DefaultPosition) ->
None
This class represents a dialog that requests a numeric input from the user.
__init__
(self, *args, **kw)¶__init__ (self)
Default constructor.
Call Create
to really create the dialog later.
None
__init__ (self, parent : Window, message : str, prompt : str, caption : str, value : int, min : int, max : int, pos: Point=DefaultPosition)
Constructor.
Use ShowModal
to show the dialog.
See Create
method for parameter description.
None
Create
(self, parent : Window, message : str, prompt : str, caption : str, value : int, min : int, max : int, pos: Point=DefaultPosition)¶parent (wx.Window) – Parent window.
message (string) – Message to show on the dialog.
prompt (string) – The prompt of the dialog.
caption (string) – The caption of the dialog.
value (long) – The default value.
min (long) – The minimal value.
max (long) – The maximal value.
pos (wx.Point) – Dialog position.
bool
GetClassDefaultAttributes
(variant: WindowVariant=WINDOW_VARIANT_NORMAL)¶variant (WindowVariant) –
GetValue
(self)¶Returns the value that the user has entered if the user has pressed wx.OK
, or the original value if the user has pressed Cancel.
int