picker
Classes:
|
|
|
|
|
|
-
class
dir_picker
(parent, id=- 1, value='', pos=(- 1, - 1), size=(- 1, - 1), style=524288, name=b'dir_picker')[source] Bases:
TextCtrlWrapper
,Panel
- Parameters
Methods:
Browse
(*_)Clear
(*_)Clears the text in the control.
Returns the insertion point, or cursor, position.
Resets the text ctrl to the initial value, either specified in __init__ or set with
SetInitialValue
.SetHeight
(height)Set the height of the widgets
SetInitialValue
(value)Sets the initial value for the text ctrl.
SetInsertionPoint
(pos)Sets the insertion point at the given position.
Sets the insertion point at the end of the text control.
SetTextWidth
(width)Sets the width of the TextCtrl.
set_height
(height)set_textctrl_width
(width)Attributes:
-
Clear
(*_)[source] Clears the text in the control.
Note that this function will generate a wxEVT_TEXT event, i.e. its effect is identical to calling SetValue (“”).
-
GetInsertionPoint
()[source] Returns the insertion point, or cursor, position.
This is defined as the zero based index of the character position to the right of the insertion point. For example, if the insertion point is at the end of the single-line text control, it is equal to GetLastPosition .
- Return type
long
-
ResetValue
()[source] Resets the text ctrl to the initial value, either specified in __init__ or set with
SetInitialValue
.
-
SetHeight
(height)[source] Set the height of the widgets
- Parameters
height (
int
) – Height of the widgets
-
SetInitialValue
(value)[source] Sets the initial value for the text ctrl.
- Parameters
value (
str
) – Initial value for the text ctrl.
-
SetInsertionPoint
(pos)[source] Sets the insertion point at the given position.
- Parameters
pos (
int
) – Position to set, in the range from0
toGetLastPosition()
inclusive.
-
SetInsertionPointEnd
()[source] Sets the insertion point at the end of the text control.
This is equivalent to calling wx.TextCtrl.SetInsertionPoint with wx.TextCtrl.GetLastPosition argument.
-
class
file_folder_picker
(parent, id=- 1, value='', pos=(- 1, - 1), size=(- 1, - 1), style=524294, name=b'file_picker', extension='*', title='File Picker', filetypestring='All Files', start_as_files=True, **kwargs)[source] Bases:
dir_picker
- Parameters
Methods:
Browse
(*_)Attributes:
-
class
file_picker
(parent, id=- 1, value='', pos=(- 1, - 1), size=(- 1, - 1), style=524294, name=b'file_picker', extension='*', title='File Picker', filetypestring='All Files', **kwargs)[source] Bases:
dir_picker
- Parameters
Methods:
Browse
(*_)Attributes: