GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Table of Contents
  • wx.NumberEntryDialog
  • Show Source
  • index
  • modules
  • next
  • previous
  • Home
  • Gallery
  • wx

This view

  • Original page
  • New address

GeezerVison is showing docs.wxpython.org — wx.NumberEntryDialog — wxPython 4.3.2 Docs

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:

Inheritance diagram of NumberEntryDialog


method_summary Methods Summary¶

__init__

Default constructor.

Create

GetClassDefaultAttributes

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() -> None

NumberEntryDialog(parent, message, prompt, caption, value, min, max,
                  pos=DefaultPosition) -> None

This class represents a dialog that requests a numeric input from the user.


Methods¶

__init__(self, *args, **kw)¶

overload Overloaded Implementations:



__init__ (self)

Default constructor.

Call Create to really create the dialog later.

Return type:

None



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

Constructor.

Use ShowModal to show the dialog.

See Create method for parameter description.

Parameters:
  • parent (wx.Window)

  • message (string)

  • prompt (string)

  • caption (string)

  • value (long)

  • min (long)

  • max (long)

  • pos (wx.Point)

Return type:

None





Create(self, parent, message, prompt, caption, value, min, max, pos=DefaultPosition)¶
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.

Return type:

bool



static GetClassDefaultAttributes(variant=WINDOW_VARIANT_NORMAL)¶
Parameters:

variant (WindowVariant)

Return type:

wx.VisualAttributes



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:

int


Properties¶

Value¶

See GetValue

© Copyright 2012-2026, The wxPython Team. Created using Sphinx 9.1.0 and the python-docs-theme.
You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.