Phoenix Logo

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.

See also

NumberEntryDialog Overview


class_hierarchy Class Hierarchy

Inheritance diagram for class NumberEntryDialog:


method_summary Methods Summary

__init__ Constructor.
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

Value See 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.


Methods



__init__(self, parent, message, prompt, caption, value, min, max, pos=DefaultPosition)

Constructor.

Use ShowModal to show the dialog.

Parameters:
  • 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.


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.

Return type:long

Properties



Value

See GetValue