.. wxPython Phoenix documentation

   This file was generated by Phoenix's sphinx generator and associated
   tools, do not edit by hand.

   Copyright: (c) 2011-2018 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 :ref:`wx.GetNumberFromUser`  function instead of using this dialog. 







         



.. seealso:: :ref:`NumberEntryDialog Overview <numberentrydialog overview>`    







|

|class_hierarchy| Class Hierarchy
=================================

.. raw:: html

   <div id="toggleBlock" onclick="return toggleVisibility(this)" class="closed" style="cursor:pointer;">
   <img id="toggleBlock-trigger" src="_static/images/closed.png"/>
   Inheritance diagram for class <strong>NumberEntryDialog</strong>:
   </div>
   <div id="toggleBlock-summary" style="display:block;"></div>
   <div id="toggleBlock-content" style="display:none;">
   <p class="graphviz">
   <center><img src="_static/images/inheritance/wx.NumberEntryDialog_inheritance.png" alt="Inheritance diagram of NumberEntryDialog" usemap="#dummy" class="inheritance"/></center>
   </div>
   <script type="text/javascript">toggleVisibilityOnLoad(document.getElementById('toggleBlock'))</script>
   <map id="dummy" name="dummy"> <area shape="rect" id="node1" href="wx.Trackable.html" title="wx.Trackable" alt="" coords="5,5,107,35"/> <area shape="rect" id="node4" href="wx.EvtHandler.html" title="wx.EvtHandler" alt="" coords="57,83,168,112"/> <area shape="rect" id="node2" href="wx.Object.html" title="wx.Object" alt="" coords="131,5,212,35"/> <area shape="rect" id="node3" href="wx.Window.html" title="wx.Window" alt="" coords="69,160,157,189"/> <area shape="rect" id="node6" href="wx.NonOwnedWindow.html" title="wx.NonOwnedWindow" alt="" coords="34,237,192,267"/> <area shape="rect" id="node5" href="wx.TopLevelWindow.html" title="wx.TopLevelWindow" alt="" coords="42,315,184,344"/> <area shape="rect" id="node8" href="wx.Dialog.html" title="wx.Dialog" alt="" coords="72,392,153,421"/> <area shape="rect" id="node7" href="wx.NumberEntryDialog.html" title="wx.NumberEntryDialog" alt="" coords="30,469,196,499"/> </map> 
   </p>

|


|method_summary| Methods Summary
================================

================================================================================ ================================================================================
:meth:`~wx.NumberEntryDialog.__init__`                                           Constructor.
: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(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, parent, message, prompt, caption, value, min, max, pos=DefaultPosition)

      Constructor.                  

      Use :meth:`ShowModal`   to show the dialog. 




      :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


















                  





   .. 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`

