wx.TextEntryDialog

Inheritance diagram for wx.TextEntryDialog:



Description

This class represents a dialog that requests a one-line text string from the user. It is implemented as a generic wxWidgets dialog.

Known Subclasses

wx.PasswordEntryDialog

Properties Summary

Class API

Methods

__init__(parent, message, caption="Please enter text", defaultValue="", style=wx.OK|wx.CANCEL|wx.CENTRE, pos=wx.DefaultPosition)

Constructor. Use ShowModal method to show the dialog.

Parameters:

  • parent (wx.Window)
  • message (string)
  • caption (string)
  • defaultValue (string)
  • style (long)
  • pos (wx.Point)

Returns:

wx.TextEntryDialog


GetValue()

Returns the text that the user has entered if the user has pressed OK, or the original value if the user has pressed Cancel.


Returns:

string


SetValue(value)

Sets the default text value.

Parameters:

  • value (string)

ShowModal()

Shows the dialog, returning one of wx.ID_OK or wx.ID_CANCEL.


Returns:

int


Properties

Value
See GetValue and SetValue