.. wxPython Phoenix documentation This file was generated by Phoenix's sphinx generator and associated tools, do not edit by hand. Copyright: (c) 2011-2020 by Total Control Software License: wxWindows License .. include:: headings.inc .. _wx.NumberEntryDialog: ========================================================================================================================================== |phoenix_title| **wx.NumberEntryDialog** ========================================================================================================================================== 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. .. seealso:: :ref:`NumberEntryDialog Overview ` | |class_hierarchy| Class Hierarchy ================================= .. raw:: html
Inheritance diagram for class NumberEntryDialog:
| |method_summary| Methods Summary ================================ ================================================================================ ================================================================================ :meth:`~wx.NumberEntryDialog.__init__` Default constructor. :meth:`~wx.NumberEntryDialog.Create` :meth:`~wx.NumberEntryDialog.GetClassDefaultAttributes` :meth:`~wx.NumberEntryDialog.GetValue` 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. ================================================================================ ================================================================================ | |property_summary| Properties Summary ===================================== ================================================================================ ================================================================================ :attr:`~wx.NumberEntryDialog.Value` See :meth:`~wx.NumberEntryDialog.GetValue` ================================================================================ ================================================================================ | |api| Class API =============== .. class:: wx.NumberEntryDialog(Dialog) **Possible constructors**:: NumberEntryDialog() NumberEntryDialog(parent, message, prompt, caption, value, min, max, pos=DefaultPosition) This class represents a dialog that requests a numeric input from the user. .. method:: __init__(self, *args, **kw) |overload| Overloaded Implementations: :html:`

` **__init__** `(self)` Default constructor. Call :meth:`Create` to really create the dialog later. :html:`

` **__init__** `(self, parent, message, prompt, caption, value, min, max, pos=DefaultPosition)` Constructor. Use :meth:`~wx.Dialog.ShowModal` to show the dialog. See :meth:`Create` method for parameter description. :param `parent`: :type `parent`: wx.Window :param `message`: :type `message`: string :param `prompt`: :type `prompt`: string :param `caption`: :type `caption`: string :param `value`: :type `value`: long :param `min`: :type `min`: long :param `max`: :type `max`: long :param `pos`: :type `pos`: wx.Point :html:`

` .. method:: Create(self, parent, message, prompt, caption, value, min, max, pos=DefaultPosition) :param `parent`: Parent window. :type `parent`: wx.Window :param `message`: Message to show on the dialog. :type `message`: string :param `prompt`: The prompt of the dialog. :type `prompt`: string :param `caption`: The caption of the dialog. :type `caption`: string :param `value`: The default value. :type `value`: long :param `min`: The minimal value. :type `min`: long :param `max`: The maximal value. :type `max`: long :param `pos`: Dialog position. :type `pos`: wx.Point :rtype: `bool` .. staticmethod:: GetClassDefaultAttributes(variant=WINDOW_VARIANT_NORMAL) :param `variant`: :type `variant`: wx.WindowVariant :rtype: :ref:`wx.VisualAttributes` .. method:: 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. :rtype: `long` .. attribute:: Value See :meth:`~wx.NumberEntryDialog.GetValue`