| |
- PyWizardPage(WizardPage)
-
- BasePage
-
- ChooseDriverPage
- ConnectionSetupPage
- DatabaseSetupPage
- Wizard(Dialog)
-
- DBSpecifierWizard
class BasePage(PyWizardPage) |
|
Base page for the various wizard pages |
|
- Method resolution order:
- BasePage
- PyWizardPage
- WizardPage
- Panel
- Window
- EvtHandler
- Object
- object
Methods defined here:
- CreateControls(self, style=0)
- Create the controls for the Window
- GetNext(self)
- Retrieve the next window in the series
- GetPrev(self)
- Retrieve the previous window in the series
- SetNext(self, nextWindow)
- Set the next window in the chain of Windows
- SetPrev(self, previousWindow)
- Set the previous window in the chain of Windows
- __init__(self, parent, bitmap=None, resource=None, value=None, title='Choose Database Driver')
- Initialize the BasePage object
- __repr__(self)
Data and other attributes defined here:
- message = ''
- next = None
- previous = None
Methods inherited from PyWizardPage:
- Create(*args, **kwargs)
- Create(Wizard parent, Bitmap bitmap=wxNullBitmap, String resource=EmptyString) -> bool
- base_AcceptsFocus(*args, **kwargs)
- base_AcceptsFocus() -> bool
- base_AcceptsFocusFromKeyboard(*args, **kwargs)
- base_AcceptsFocusFromKeyboard() -> bool
- base_AddChild(*args, **kwargs)
- base_AddChild(Window child)
- base_DoGetBestSize(*args, **kwargs)
- base_DoGetBestSize() -> Size
- base_DoGetClientSize(*args, **kwargs)
- base_DoGetClientSize() -> (width, height)
- base_DoGetPosition(*args, **kwargs)
- base_DoGetPosition() -> (x,y)
- base_DoGetSize(*args, **kwargs)
- base_DoGetSize() -> (width, height)
- base_DoGetVirtualSize(*args, **kwargs)
- base_DoGetVirtualSize() -> Size
- base_DoMoveWindow(*args, **kwargs)
- base_DoMoveWindow(int x, int y, int width, int height)
- base_DoSetClientSize(*args, **kwargs)
- base_DoSetClientSize(int width, int height)
- base_DoSetSize(*args, **kwargs)
- base_DoSetSize(int x, int y, int width, int height, int sizeFlags=SIZE_AUTO)
- base_DoSetVirtualSize(*args, **kwargs)
- base_DoSetVirtualSize(int x, int y)
- base_GetMaxSize(*args, **kwargs)
- base_GetMaxSize() -> Size
- base_InitDialog(*args, **kwargs)
- base_InitDialog()
- base_RemoveChild(*args, **kwargs)
- base_RemoveChild(Window child)
- base_TransferDataFromWindow(*args, **kwargs)
- base_TransferDataFromWindow() -> bool
- base_TransferDataToWindow(*args, **kwargs)
- base_TransferDataToWindow() -> bool
- base_Validate(*args, **kwargs)
- base_Validate() -> bool
Methods inherited from WizardPage:
- GetBitmap(*args, **kwargs)
- GetBitmap() -> Bitmap
Methods inherited from Panel:
- InitDialog(*args, **kwargs)
- InitDialog()
Methods inherited from Window:
- AcceptsFocus(*args, **kwargs)
- AcceptsFocus() -> bool
Can this window have focus?
- AcceptsFocusFromKeyboard(*args, **kwargs)
- AcceptsFocusFromKeyboard() -> bool
Can this window be given focus by keyboard navigation? if not, the
only way to give it focus (provided it accepts it at all) is to click
it.
- AddChild(*args, **kwargs)
- AddChild(Window child)
Adds a child window. This is called automatically by window creation
functions so should not be required by the application programmer.
- CaptureMouse(*args, **kwargs)
- CaptureMouse()
Directs all mouse input to this window. Call wx.Window.ReleaseMouse to
release the capture.
Note that wxWindows maintains the stack of windows having captured the
mouse and when the mouse is released the capture returns to the window
which had had captured it previously and it is only really released if
there were no previous window. In particular, this means that you must
release the mouse as many times as you capture it.
- Center(*args, **kwargs)
- Center(int direction=BOTH)
Centers the window. The parameter specifies the direction for
cetering, and may be wx.HORIZONTAL, wx.VERTICAL or wx.BOTH. It may
also include wx.CENTER_ON_SCREEN flag if you want to center the window
on the entire screen and not on its parent window. If it is a
top-level window and has no parent then it will always be centered
relative to the screen.
- CenterOnParent(*args, **kwargs)
- CenterOnParent(int dir=BOTH)
Center with respect to the the parent window
- CenterOnScreen(*args, **kwargs)
- CenterOnScreen(int dir=BOTH)
Center on screen (only works for top level windows)
- Centre = Center(*args, **kwargs)
- Center(int direction=BOTH)
Centers the window. The parameter specifies the direction for
cetering, and may be wx.HORIZONTAL, wx.VERTICAL or wx.BOTH. It may
also include wx.CENTER_ON_SCREEN flag if you want to center the window
on the entire screen and not on its parent window. If it is a
top-level window and has no parent then it will always be centered
relative to the screen.
- CentreOnParent = CenterOnParent(*args, **kwargs)
- CenterOnParent(int dir=BOTH)
Center with respect to the the parent window
- CentreOnScreen = CenterOnScreen(*args, **kwargs)
- CenterOnScreen(int dir=BOTH)
Center on screen (only works for top level windows)
- ClearBackground(*args, **kwargs)
- ClearBackground()
Clears the window by filling it with the current background
colour. Does not cause an erase background event to be generated.
- ClientToScreen(*args, **kwargs)
- ClientToScreen(Point pt) -> Point
Converts to screen coordinates from coordinates relative to this window.
- ClientToScreenXY(*args, **kwargs)
- ClientToScreenXY(int x, int y) -> (x,y)
Converts to screen coordinates from coordinates relative to this window.
- Close(*args, **kwargs)
- Close(bool force=False) -> bool
This function simply generates a EVT_CLOSE event whose handler usually
tries to close the window. It doesn't close the window itself,
however. If force is False (the default) then the window's close
handler will be allowed to veto the destruction of the window.
Usually Close is only used with the top level windows (wx.Frame and
wx.Dialog classes) as the others are not supposed to have any special
EVT_CLOSE logic.
The close handler should check whether the window is being deleted
forcibly, using wx.CloseEvent.GetForce, in which case it should
destroy the window using wx.Window.Destroy.
Note that calling Close does not guarantee that the window will be
destroyed; but it provides a way to simulate a manual close of a
window, which may or may not be implemented by destroying the
window. The default EVT_CLOSE handler for wx.Dialog does not
necessarily delete the dialog, since it will simply simulate an
wxID_CANCEL event which is handled by the appropriate button event
handler and may do anything at all.
To guarantee that the window will be destroyed, call wx.Window.Destroy
instead.
- ConvertDialogPointToPixels(*args, **kwargs)
- ConvertDialogPointToPixels(Point pt) -> Point
Converts a point or size from dialog units to pixels. Dialog units
are used for maintaining a dialog's proportions even if the font
changes. For the x dimension, the dialog units are multiplied by the
average character width and then divided by 4. For the y dimension,
the dialog units are multiplied by the average character height and
then divided by 8.
- ConvertDialogSizeToPixels(*args, **kwargs)
- ConvertDialogSizeToPixels(Size sz) -> Size
Converts a point or size from dialog units to pixels. Dialog units
are used for maintaining a dialog's proportions even if the font
changes. For the x dimension, the dialog units are multiplied by the
average character width and then divided by 4. For the y dimension,
the dialog units are multiplied by the average character height and
then divided by 8.
- ConvertPixelPointToDialog(*args, **kwargs)
- ConvertPixelPointToDialog(Point pt) -> Point
- ConvertPixelSizeToDialog(*args, **kwargs)
- ConvertPixelSizeToDialog(Size sz) -> Size
- DLG_PNT(*args, **kwargs)
- DLG_PNT(Point pt) -> Point
Converts a point or size from dialog units to pixels. Dialog units
are used for maintaining a dialog's proportions even if the font
changes. For the x dimension, the dialog units are multiplied by the
average character width and then divided by 4. For the y dimension,
the dialog units are multiplied by the average character height and
then divided by 8.
- DLG_SZE(*args, **kwargs)
- DLG_SZE(Size sz) -> Size
Converts a point or size from dialog units to pixels. Dialog units
are used for maintaining a dialog's proportions even if the font
changes. For the x dimension, the dialog units are multiplied by the
average character width and then divided by 4. For the y dimension,
the dialog units are multiplied by the average character height and
then divided by 8.
- Destroy(*args, **kwargs)
- Destroy() -> bool
Destroys the window safely. Frames and dialogs are not destroyed
immediately when this function is called -- they are added to a list
of windows to be deleted on idle time, when all the window's events
have been processed. This prevents problems with events being sent to
non-existent windows.
Returns True if the window has either been successfully deleted, or it
has been added to the list of windows pending real deletion.
- DestroyChildren(*args, **kwargs)
- DestroyChildren() -> bool
Destroys all children of a window. Called automatically by the destructor.
- Disable(*args, **kwargs)
- Disable() -> bool
Disables the window, same as Enable(false).
- DragAcceptFiles(*args, **kwargs)
- DragAcceptFiles(bool accept)
Enables or disables eligibility for drop file events, EVT_DROP_FILES.
Only available on Windows.
- Enable(*args, **kwargs)
- Enable(bool enable=True) -> bool
Enable or disable the window for user input. Note that when a parent
window is disabled, all of its children are disabled as well and they
are reenabled again when the parent is. Returns true if the window
has been enabled or disabled, false if nothing was done, i.e. if the
window had already been in the specified state.
- FindWindowById(*args, **kwargs)
- FindWindowById(long winid) -> Window
Find a chld of this window by window ID
- FindWindowByName(*args, **kwargs)
- FindWindowByName(String name) -> Window
Find a child of this window by name
- Fit(*args, **kwargs)
- Fit()
Sizes the window so that it fits around its subwindows. This function
won't do anything if there are no subwindows and will only really work
correctly if sizers are used for the subwindows layout. Also, if the
window has exactly one subwindow it is better (faster and the result
is more precise as Fit adds some margin to account for fuzziness of
its calculations) to call window.SetClientSize(child.GetSize())
instead of calling Fit.
- FitInside(*args, **kwargs)
- FitInside()
Similar to Fit, but sizes the interior (virtual) size of a
window. Mainly useful with scrolled windows to reset scrollbars after
sizing changes that do not trigger a size event, and/or scrolled
windows without an interior sizer. This function similarly won't do
anything if there are no subwindows.
- Freeze(*args, **kwargs)
- Freeze()
Freezes the window or, in other words, prevents any updates from taking place
on screen, the window is not redrawn at all. Thaw must be called to reenable
window redrawing. Calls to Freeze/Thaw may be nested, with the actual Thaw
being delayed until all the nesting has been undone.
This method is useful for visual appearance optimization (for example,
it is a good idea to use it before inserting large amount of text into
a wxTextCtrl under wxGTK) but is not implemented on all platforms nor
for all controls so it is mostly just a hint to wxWindows and not a
mandatory directive.
- GetAcceleratorTable(*args, **kwargs)
- GetAcceleratorTable() -> AcceleratorTable
Gets the accelerator table for this window.
- GetAdjustedBestSize(*args, **kwargs)
- GetAdjustedBestSize() -> Size
This method is similar to GetBestSize, except in one
thing. GetBestSize should return the minimum untruncated size of the
window, while this method will return the largest of BestSize and any
user specified minimum size. ie. it is the minimum size the window
should currently be drawn at, not the minimal size it can possibly
tolerate.
- GetAutoLayout(*args, **kwargs)
- GetAutoLayout() -> bool
Returns the current autoLayout setting
- GetBackgroundColour(*args, **kwargs)
- GetBackgroundColour() -> Colour
Returns the background colour of the window.
- GetBestSize(*args, **kwargs)
- GetBestSize() -> Size
This functions returns the best acceptable minimal size for the
window, if applicable. For example, for a static text control, it will be
the minimal size such that the control label is not truncated. For
windows containing subwindows (suzh aswx.Panel), the size returned
by this function will be the same as the size the window would have
had after calling Fit.
- GetBestSizeTuple(*args, **kwargs)
- GetBestSizeTuple() -> (width, height)
This functions returns the best acceptable minimal size for the
window, if applicable. For example, for a static text control, it will be
the minimal size such that the control label is not truncated. For
windows containing subwindows (suzh aswx.Panel), the size returned
by this function will be the same as the size the window would have
had after calling Fit.
- GetBestVirtualSize(*args, **kwargs)
- GetBestVirtualSize() -> Size
Return the largest of ClientSize and BestSize (as determined by a
sizer, interior children, or other means)
- GetBorder(*args)
- GetBorder(long flags) -> int
GetBorder() -> int
Get border for the flags of this window
- GetCaret(*args, **kwargs)
- GetCaret() -> Caret
Returns the caret associated with the window.
- GetCharHeight(*args, **kwargs)
- GetCharHeight() -> int
Get the (average) character size for the current font.
- GetCharWidth(*args, **kwargs)
- GetCharWidth() -> int
Get the (average) character size for the current font.
- GetChildren(*args, **kwargs)
- GetChildren() -> PyObject
Returns a list of the window's children. NOTE: Currently this is a
copy of the child window list maintained by the window, so the return
value of this function is only valid as long as the window's children
do not change.
- GetClientAreaOrigin(*args, **kwargs)
- GetClientAreaOrigin() -> Point
Get the origin of the client area of the window relative to the
window's top left corner (the client area may be shifted because of
the borders, scrollbars, other decorations...)
- GetClientRect(*args, **kwargs)
- GetClientRect() -> Rect
Get the client area position and size as a wx.Rect object.
- GetClientSize(*args, **kwargs)
- GetClientSize() -> Size
This gets the size of the window's 'client area' in pixels. The client
area is the area which may be drawn on by the programmer, excluding
title bar, border, scrollbars, etc.
- GetClientSizeTuple(*args, **kwargs)
- GetClientSizeTuple() -> (width, height)
This gets the size of the window's 'client area' in pixels. The client
area is the area which may be drawn on by the programmer, excluding
title bar, border, scrollbars, etc.
- GetConstraints(*args, **kwargs)
- GetConstraints() -> LayoutConstraints
Returns a pointer to the window's layout constraints, or None if there
are none.
- GetContainingSizer(*args, **kwargs)
- GetContainingSizer() -> Sizer
Return the sizer that this window is a member of, if any, otherwise None.
- GetCursor(*args, **kwargs)
- GetCursor() -> Cursor
Return the cursor associated with this window.
- GetDefaultItem(*args, **kwargs)
- GetDefaultItem() -> Window
Get the default child of this parent, i.e. the one which is activated
by pressing <Enter> such as the OK button on a wx.Dialog.
- GetDropTarget(*args, **kwargs)
- GetDropTarget() -> DropTarget
Returns the associated drop target, which may be None.
- GetEventHandler(*args, **kwargs)
- GetEventHandler() -> EvtHandler
Returns the event handler for this window. By default, the window is
its own event handler.
- GetExtraStyle(*args, **kwargs)
- GetExtraStyle() -> long
Returns the extra style bits for the window.
- GetFont(*args, **kwargs)
- GetFont() -> Font
Returns the default font used for this window.
- GetForegroundColour(*args, **kwargs)
- GetForegroundColour() -> Colour
Returns the foreground colour of the window. The interpretation of
foreground colour is dependent on the window class; it may be the text
colour or other colour, or it may not be used at all.
- GetFullTextExtent(*args, **kwargs)
- GetFullTextExtent(String string, Font font=None) ->
(width, height, descent, externalLeading)
Get the width, height, decent and leading of the text using the
current or specified font.
- GetGrandParent(*args, **kwargs)
- GetGrandParent() -> Window
Returns the parent of the parent of this window, or None if there isn't one.
- GetHandle(*args, **kwargs)
- GetHandle() -> long
Returns the platform-specific handle (as a long integer) of the
physical window. Currently on wxMac it returns the handle of the
toplevel parent of the window.
- GetHelpText(*args, **kwargs)
- GetHelpText() -> String
Gets the help text to be used as context-sensitive help for this
window. Note that the text is actually stored by the current
wxHelpProvider implementation, and not in the window object itself.
- GetId(*args, **kwargs)
- GetId() -> int
Returns the identifier of the window. Each window has an integer
identifier. If the application has not provided one (or the default Id
-1 is used) then an unique identifier with a negative value will be
generated.
- GetLabel(*args, **kwargs)
- GetLabel() -> String
Generic way of getting a label from any window, for
identification purposes. The interpretation of this function
differs from class to class. For frames and dialogs, the value
returned is the title. For buttons or static text controls, it is
the button text. This function can be useful for meta-programs
(such as testing tools or special-needs access programs) which
need to identify windows by name.
- GetMaxHeight(*args, **kwargs)
- GetMaxHeight() -> int
- GetMaxSize(*args, **kwargs)
- GetMaxSize() -> Size
- GetMaxWidth(*args, **kwargs)
- GetMaxWidth() -> int
- GetMinHeight(*args, **kwargs)
- GetMinHeight() -> int
- GetMinWidth(*args, **kwargs)
- GetMinWidth() -> int
- GetName(*args, **kwargs)
- GetName() -> String
Returns the window's name. This name is not guaranteed to be
unique; it is up to the programmer to supply an appropriate name
in the window constructor or via wx.Window.SetName.
- GetParent(*args, **kwargs)
- GetParent() -> Window
Returns the parent window of this window, or None if there isn't one.
- GetPosition(*args, **kwargs)
- GetPosition() -> Point
Get the window's position.
- GetPositionTuple(*args, **kwargs)
- GetPositionTuple() -> (x,y)
Get the window's position.
- GetRect(*args, **kwargs)
- GetRect() -> Rect
Returns the size and position of the window as a wx.Rect object.
- GetScrollPos(*args, **kwargs)
- GetScrollPos(int orientation) -> int
Returns the built-in scrollbar position.
- GetScrollRange(*args, **kwargs)
- GetScrollRange(int orientation) -> int
Returns the built-in scrollbar range.
- GetScrollThumb(*args, **kwargs)
- GetScrollThumb(int orientation) -> int
Returns the built-in scrollbar thumb size.
- GetSize(*args, **kwargs)
- GetSize() -> Size
Get the window size.
- GetSizeTuple(*args, **kwargs)
- GetSizeTuple() -> (width, height)
Get the window size.
- GetSizer(*args, **kwargs)
- GetSizer() -> Sizer
Return the sizer associated with the window by a previous call to
SetSizer or None if there isn't one.
- GetTextExtent(*args, **kwargs)
- GetTextExtent(String string) -> (width, height)
Get the width and height of the text using the current font.
- GetThemeEnabled(*args, **kwargs)
- GetThemeEnabled() -> bool
Return the themeEnabled flag.
- GetTitle(*args, **kwargs)
- GetTitle() -> String
Gets the window's title. Applicable only to frames and dialogs.
- GetToolTip(*args, **kwargs)
- GetToolTip() -> ToolTip
get the associated tooltip or None if none
- GetUpdateClientRect(*args, **kwargs)
- GetUpdateClientRect() -> Rect
Get the update rectangle region bounding box in client coords.
- GetUpdateRegion(*args, **kwargs)
- GetUpdateRegion() -> Region
Returns the region specifying which parts of the window have been
damaged. Should only be called within an EVT_PAINT handler.
- GetValidator(*args, **kwargs)
- GetValidator() -> Validator
Returns a pointer to the current validator for the window, or None if
there is none.
- GetVirtualSize(*args, **kwargs)
- GetVirtualSize() -> Size
Get the the virtual size of the window in pixels. For most windows
this is just the client area of the window, but for some like scrolled
windows it is more or less independent of the screen window size.
- GetVirtualSizeTuple(*args, **kwargs)
- GetVirtualSizeTuple() -> (width, height)
Get the the virtual size of the window in pixels. For most windows
this is just the client area of the window, but for some like scrolled
windows it is more or less independent of the screen window size.
- GetWindowStyle = GetWindowStyleFlag(*args, **kwargs)
- GetWindowStyleFlag() -> long
Gets the window style that was passed to the constructor or Create
method.
- GetWindowStyleFlag(*args, **kwargs)
- GetWindowStyleFlag() -> long
Gets the window style that was passed to the constructor or Create
method.
- GetWindowVariant(*args, **kwargs)
- GetWindowVariant() -> int
- HasCapture(*args, **kwargs)
- HasCapture() -> bool
Returns true if this window has the current mouse capture.
- HasFlag(*args, **kwargs)
- HasFlag(int flag) -> bool
Test if the given style is set for this window.
- HasScrollbar(*args, **kwargs)
- HasScrollbar(int orient) -> bool
Does the window have the scrollbar for this orientation?
- Hide(*args, **kwargs)
- Hide() -> bool
Equivalent to calling Show(False).
- HitTest(*args, **kwargs)
- HitTest(Point pt) -> int
Test where the given (in client coords) point lies
- HitTestXY(*args, **kwargs)
- HitTestXY(int x, int y) -> int
Test where the given (in client coords) point lies
- IsBeingDeleted(*args, **kwargs)
- IsBeingDeleted() -> bool
Is the window in the process of being deleted?
- IsEnabled(*args, **kwargs)
- IsEnabled() -> bool
Returns true if the window is enabled for input, false otherwise.
- IsExposed(*args, **kwargs)
- IsExposed(int x, int y, int w=1, int h=1) -> bool
Returns true if the given point or rectangle area has been exposed
since the last repaint. Call this in an paint event handler to
optimize redrawing by only redrawing those areas, which have been
exposed.
- IsExposedPoint(*args, **kwargs)
- IsExposedPoint(Point pt) -> bool
Returns true if the given point or rectangle area has been exposed
since the last repaint. Call this in an paint event handler to
optimize redrawing by only redrawing those areas, which have been
exposed.
- IsExposedRect(*args, **kwargs)
- IsExposedRect(Rect rect) -> bool
Returns true if the given point or rectangle area has been exposed
since the last repaint. Call this in an paint event handler to
optimize redrawing by only redrawing those areas, which have been
exposed.
- IsRetained(*args, **kwargs)
- IsRetained() -> bool
Returns true if the window is retained, false otherwise. Retained
windows are only available on X platforms.
- IsShown(*args, **kwargs)
- IsShown() -> bool
Returns true if the window is shown, false if it has been hidden.
- IsTopLevel(*args, **kwargs)
- IsTopLevel() -> bool
Returns true if the given window is a top-level one. Currently all
frames and dialogs are always considered to be top-level windows (even
if they have a parent window).
- Layout(*args, **kwargs)
- Layout() -> bool
Invokes the constraint-based layout algorithm or the sizer-based
algorithm for this window. See SetAutoLayout: when auto layout is on,
this function gets called automatically by the default EVT_SIZE
handler when the window is resized.
- LineDown(*args, **kwargs)
- LineDown() -> bool
This is just a wrapper for ScrollLines(1).
- LineUp(*args, **kwargs)
- LineUp() -> bool
This is just a wrapper for ScrollLines(-1).
- Lower(*args, **kwargs)
- Lower()
Lowers the window to the bottom of the window hierarchy if it is a
managed window (dialog or frame).
- MakeModal(*args, **kwargs)
- MakeModal(bool modal=True)
Disables all other windows in the application so that the user can
only interact with this window. Passing False will reverse this
effect.
- Move(*args, **kwargs)
- Move(Point pt, int flags=SIZE_USE_EXISTING)
Moves the window to the given position.
- MoveXY(*args, **kwargs)
- MoveXY(int x, int y, int flags=SIZE_USE_EXISTING)
Moves the window to the given position.
- OnPaint(*args, **kwargs)
- OnPaint(PaintEvent event)
- PageDown(*args, **kwargs)
- PageDown() -> bool
This is just a wrapper for ScrollPages(1).
- PageUp(*args, **kwargs)
- PageUp() -> bool
This is just a wrapper for ScrollPages(-1).
- PopEventHandler(*args, **kwargs)
- PopEventHandler(bool deleteHandler=False) -> EvtHandler
Removes and returns the top-most event handler on the event handler
stack. If deleteHandler is True then the wx.EvtHandler object will be
destroyed after it is popped.
- PopupMenu(*args, **kwargs)
- PopupMenu(Menu menu, Point pos) -> bool
Pops up the given menu at the specified coordinates, relative to this
window, and returns control when the user has dismissed the menu. If a
menu item is selected, the corresponding menu event is generated and
will be processed as usual.
- PopupMenuXY(*args, **kwargs)
- PopupMenuXY(Menu menu, int x, int y) -> bool
Pops up the given menu at the specified coordinates, relative to this
window, and returns control when the user has dismissed the menu. If a
menu item is selected, the corresponding menu event is generated and
will be processed as usual.
- PostCreate(self, pre)
- Phase 3 of the 2-phase create <wink!>
Call this method after precreating the window with the 2-phase create method.
- PrepareDC(*args, **kwargs)
- PrepareDC(DC dc)
Call this function to prepare the device context for drawing a
scrolled image. It sets the device origin according to the current
scroll position.
- PushEventHandler(*args, **kwargs)
- PushEventHandler(EvtHandler handler)
Pushes this event handler onto the event handler stack for the window.
An event handler is an object that is capable of processing the events
sent to a window. By default, the window is its own event handler, but
an application may wish to substitute another, for example to allow
central implementation of event-handling for a variety of different
window classes.
wx.Window.PushEventHandler allows an application to set up a chain of
event handlers, where an event not handled by one event handler is
handed to the next one in the chain. Use wx.Window.PopEventHandler to
remove the event handler.
- Raise(*args, **kwargs)
- Raise()
Raises the window to the top of the window hierarchy if it is a
managed window (dialog or frame).
- Refresh(*args, **kwargs)
- Refresh(bool eraseBackground=True, Rect rect=None)
Mark the specified rectangle (or the whole window) as "dirty" so it
will be repainted. Causes an EVT_PAINT event to be generated and sent
to the window.
- RefreshRect(*args, **kwargs)
- RefreshRect(Rect rect)
Redraws the contents of the given rectangle: the area inside it will
be repainted. This is the same as Refresh but has a nicer syntax.
- RegisterHotKey(*args, **kwargs)
- RegisterHotKey(int hotkeyId, int modifiers, int keycode) -> bool
Registers a system wide hotkey. Every time the user presses the hotkey
registered here, this window will receive a hotkey event. It will
receive the event even if the application is in the background and
does not have the input focus because the user is working with some
other application. To bind an event handler function to this hotkey
use EVT_HOTKEY with an id equal to hotkeyId. Returns True if the
hotkey was registered successfully.
- ReleaseMouse(*args, **kwargs)
- ReleaseMouse()
Releases mouse input captured with wx.Window.CaptureMouse.
- RemoveChild(*args, **kwargs)
- RemoveChild(Window child)
Removes a child window. This is called automatically by window
deletion functions so should not be required by the application
programmer.
- RemoveEventHandler(*args, **kwargs)
- RemoveEventHandler(EvtHandler handler) -> bool
Find the given handler in the event handler chain and remove (but
not delete) it from the event handler chain, return True if it was
found and False otherwise (this also results in an assert failure so
this function should only be called when the handler is supposed to
be there.)
- Reparent(*args, **kwargs)
- Reparent(Window newParent) -> bool
Reparents the window, i.e the window will be removed from its current
parent window (e.g. a non-standard toolbar in a wxFrame) and then
re-inserted into another. Available on Windows and GTK. Returns True
if the parent was changed, False otherwise (error or newParent ==
oldParent)
- ScreenToClient(*args, **kwargs)
- ScreenToClient(Point pt) -> Point
Converts from screen to client window coordinates.
- ScreenToClientXY(*args, **kwargs)
- ScreenToClientXY(int x, int y) -> (x,y)
Converts from screen to client window coordinates.
- ScrollLines(*args, **kwargs)
- ScrollLines(int lines) -> bool
If the platform and window class supports it, scrolls the window by
the given number of lines down, if lines is positive, or up if lines
is negative. Returns True if the window was scrolled, False if it was
already on top/bottom and nothing was done.
- ScrollPages(*args, **kwargs)
- ScrollPages(int pages) -> bool
If the platform and window class supports it, scrolls the window by
the given number of pages down, if pages is positive, or up if pages
is negative. Returns True if the window was scrolled, False if it was
already on top/bottom and nothing was done.
- ScrollWindow(*args, **kwargs)
- ScrollWindow(int dx, int dy, Rect rect=None)
Physically scrolls the pixels in the window and move child windows
accordingly. Use this function to optimise your scrolling
implementations, to minimise the area that must be redrawn. Note that
it is rarely required to call this function from a user program.
dx: Amount to scroll horizontally.
dy: Amount to scroll vertically.
rect: Rectangle to invalidate. If this is None, the whole window
is invalidated. If you pass a rectangle corresponding to the
area of the window exposed by the scroll, your painting
handler can optimize painting by checking for the
invalidated region.
- SetAcceleratorTable(*args, **kwargs)
- SetAcceleratorTable(AcceleratorTable accel)
Sets the accelerator table for this window.
- SetAutoLayout(*args, **kwargs)
- SetAutoLayout(bool autoLayout)
Determines whether the Layout function will be called automatically
when the window is resized. It is called implicitly by SetSizer but
if you use SetConstraints you should call it manually or otherwise the
window layout won't be correctly updated when its size changes.
- SetBackgroundColour(*args, **kwargs)
- SetBackgroundColour(Colour colour) -> bool
Sets the background colour of the window. Returns True if the colour
was changed. The background colour is usually painted by the default
EVT_ERASE_BACKGROUND event handler function under Windows and
automatically under GTK.
Note that setting the background colour does not cause an immediate
refresh, so you may wish to call ClearBackground or Refresh after
calling this function.
Use this function with care under GTK+ as the new appearance of the
window might not look equally well when used with themes, i.e GTK+'s
ability to change its look as the user wishes with run-time loadable
modules.
- SetCaret(*args, **kwargs)
- SetCaret(Caret caret)
Sets the caret associated with the window.
- SetClientRect(*args, **kwargs)
- SetClientRect(Rect rect)
This sets the size of the window client area in pixels. Using this
function to size a window tends to be more device-independent than
wx.Window.SetSize, since the application need not worry about what
dimensions the border or title bar have when trying to fit the window
around panel items, for example.
- SetClientSize(*args, **kwargs)
- SetClientSize(Size size)
This sets the size of the window client area in pixels. Using this
function to size a window tends to be more device-independent than
wx.Window.SetSize, since the application need not worry about what
dimensions the border or title bar have when trying to fit the window
around panel items, for example.
- SetClientSizeWH(*args, **kwargs)
- SetClientSizeWH(int width, int height)
This sets the size of the window client area in pixels. Using this
function to size a window tends to be more device-independent than
wx.Window.SetSize, since the application need not worry about what
dimensions the border or title bar have when trying to fit the window
around panel items, for example.
- SetConstraints(*args, **kwargs)
- SetConstraints(LayoutConstraints constraints)
Sets the window to have the given layout constraints. If an existing
layout constraints object is already owned by the window, it will be
deleted. Pass None to disassociate and delete the window's current
constraints.
You must call SetAutoLayout to tell a window to use the constraints
automatically in its default EVT_SIZE handler; otherwise, you must
handle EVT_SIZE yourself and call Layout() explicitly. When setting
both a wx.LayoutConstraints and a wx.Sizer, only the sizer will have
effect.
- SetContainingSizer(*args, **kwargs)
- SetContainingSizer(Sizer sizer)
This normally does not need to be called by application code. It is
called internally when a window is added to a sizer, and is used so
the window can remove itself from the sizer when it is destroyed.
- SetCursor(*args, **kwargs)
- SetCursor(Cursor cursor) -> bool
Sets the window's cursor. Notice that the window cursor also sets it
for the children of the window implicitly.
The cursor may be wx.NullCursor in which case the window cursor will
be reset back to default.
- SetDefaultItem(*args, **kwargs)
- SetDefaultItem(Window child) -> Window
Set this child as default, return the old default.
- SetDimensions(*args, **kwargs)
- SetDimensions(int x, int y, int width, int height, int sizeFlags=SIZE_AUTO)
Sets the position and size of the window in pixels. The sizeFlags
parameter indicates the interpretation of the other params if they are
-1. wx.SIZE_AUTO*: a -1 indicates that a class-specific default
shoudl be used. wx.SIZE_USE_EXISTING: existing dimensions should be
used if -1 values are supplied. wxSIZE_ALLOW_MINUS_ONE: allow
dimensions of -1 and less to be interpreted as real dimensions, not
default values.
- SetDropTarget(*args, **kwargs)
- SetDropTarget(DropTarget dropTarget)
Associates a drop target with this window. If the window already has
a drop target, it is deleted.
- SetEventHandler(*args, **kwargs)
- SetEventHandler(EvtHandler handler)
Sets the event handler for this window. An event handler is an object
that is capable of processing the events sent to a window. By default,
the window is its own event handler, but an application may wish to
substitute another, for example to allow central implementation of
event-handling for a variety of different window classes.
It is usually better to use wx.Window.PushEventHandler since this sets
up a chain of event handlers, where an event not handled by one event
handler is handed to the next one in the chain.
- SetExtraStyle(*args, **kwargs)
- SetExtraStyle(long exStyle)
Sets the extra style bits for the window. Extra styles are the less
often used style bits which can't be set with the constructor or with
SetWindowStyleFlag()
- SetFocus(*args, **kwargs)
- SetFocus()
Set's the focus to this window, allowing it to receive keyboard input.
- SetFocusFromKbd(*args, **kwargs)
- SetFocusFromKbd()
Set focus to this window as the result of a keyboard action. Normally
only called internally.
- SetFont(*args, **kwargs)
- SetFont(Font font) -> bool
Sets the font for this window.
- SetForegroundColour(*args, **kwargs)
- SetForegroundColour(Colour colour) -> bool
Sets the foreground colour of the window. Returns True is the colour
was changed. The interpretation of foreground colour is dependent on
the window class; it may be the text colour or other colour, or it may
not be used at all.
- SetHelpText(*args, **kwargs)
- SetHelpText(String text)
Sets the help text to be used as context-sensitive help for this
window. Note that the text is actually stored by the current
wxHelpProvider implementation, and not in the window object itself.
- SetHelpTextForId(*args, **kwargs)
- SetHelpTextForId(String text)
Associate this help text with all windows with the same id as this
one.
- SetId(*args, **kwargs)
- SetId(int winid)
Sets the identifier of the window. Each window has an integer
identifier. If the application has not provided one, an identifier
will be generated. Normally, the identifier should be provided on
creation and should not be modified subsequently.
- SetLabel(*args, **kwargs)
- SetLabel(String label)
Set the text which the window shows in its label if applicable.
- SetName(*args, **kwargs)
- SetName(String name)
Sets the window's name. The window name is used for ressource
setting in X, it is not the same as the window title/label
- SetPosition = Move(*args, **kwargs)
- Move(Point pt, int flags=SIZE_USE_EXISTING)
Moves the window to the given position.
- SetRect(*args, **kwargs)
- SetRect(Rect rect, int sizeFlags=SIZE_AUTO)
Sets the position and size of the window in pixels using a wx.Rect.
- SetScrollPos(*args, **kwargs)
- SetScrollPos(int orientation, int pos, bool refresh=True)
Sets the position of one of the built-in scrollbars.
- SetScrollbar(*args, **kwargs)
- SetScrollbar(int orientation, int pos, int thumbvisible, int range,
bool refresh=True)
Sets the scrollbar properties of a built-in scrollbar.
orientation: Determines the scrollbar whose page size is to be
set. May be wx.HORIZONTAL or wx.VERTICAL.
position: The position of the scrollbar in scroll units.
thumbSize: The size of the thumb, or visible portion of the
scrollbar, in scroll units.
range: The maximum position of the scrollbar.
refresh: True to redraw the scrollbar, false otherwise.
- SetSize(*args, **kwargs)
- SetSize(Size size)
Sets the size of the window in pixels.
- SetSizeHints(*args, **kwargs)
- SetSizeHints(int minW, int minH, int maxW=-1, int maxH=-1, int incW=-1,
int incH=-1)
Allows specification of minimum and maximum window sizes, and window
size increments. If a pair of values is not set (or set to -1), the
default values will be used. If this function is called, the user
will not be able to size the window outside the given bounds. The
resizing increments are only significant under Motif or Xt.
- SetSizeWH(*args, **kwargs)
- SetSizeWH(int width, int height)
Sets the size of the window in pixels.
- SetSizer(*args, **kwargs)
- SetSizer(Sizer sizer, bool deleteOld=True)
Sets the window to have the given layout sizer. The window will then
own the object, and will take care of its deletion. If an existing
layout sizer object is already owned by the window, it will be deleted
if the deleteOld parameter is true. Note that this function will also
call SetAutoLayout implicitly with a True parameter if the sizer is
non-NoneL and False otherwise.
- SetSizerAndFit(*args, **kwargs)
- SetSizerAndFit(Sizer sizer, bool deleteOld=True)
The same as SetSizer, except it also sets the size hints for the
window based on the sizer's minimum size.
- SetThemeEnabled(*args, **kwargs)
- SetThemeEnabled(bool enableTheme)
This function tells a window if it should use the system's "theme"
code to draw the windows' background instead if its own background
drawing code. This will only have an effect on platforms that support
the notion of themes in user defined windows. One such platform is
GTK+ where windows can have (very colourful) backgrounds defined by a
user's selected theme.
Dialogs, notebook pages and the status bar have this flag set to true
by default so that the default look and feel is simulated best.
- SetTitle(*args, **kwargs)
- SetTitle(String title)
Sets the window's title. Applicable only to frames and dialogs.
- SetTmpDefaultItem(*args, **kwargs)
- SetTmpDefaultItem(Window win)
Set this child as temporary default
- SetToolTip(*args, **kwargs)
- SetToolTip(ToolTip tip)
Attach a tooltip to the window.
- SetToolTipString(*args, **kwargs)
- SetToolTipString(String tip)
Attach a tooltip to the window.
- SetValidator(*args, **kwargs)
- SetValidator(Validator validator)
Deletes the current validator (if any) and sets the window validator,
having called wx.Validator.Clone to create a new validator of this
type.
- SetVirtualSize(*args, **kwargs)
- SetVirtualSize(Size size)
Set the the virtual size of a window in pixels. For most windows this
is just the client area of the window, but for some like scrolled
windows it is more or less independent of the screen window size.
- SetVirtualSizeHints(*args, **kwargs)
- SetVirtualSizeHints(int minW, int minH, int maxW=-1, int maxH=-1)
Allows specification of minimum and maximum virtual window sizes. If a
pair of values is not set (or set to -1), the default values will be
used. If this function is called, the user will not be able to size
the virtual area of the window outside the given bounds.
- SetVirtualSizeWH(*args, **kwargs)
- SetVirtualSizeWH(int w, int h)
Set the the virtual size of a window in pixels. For most windows this
is just the client area of the window, but for some like scrolled
windows it is more or less independent of the screen window size.
- SetWindowStyle = SetWindowStyleFlag(*args, **kwargs)
- SetWindowStyleFlag(long style)
Sets the style of the window. Please note that some styles cannot be
changed after the window creation and that Refresh() might be called
after changing the others for the change to take place immediately.
- SetWindowStyleFlag(*args, **kwargs)
- SetWindowStyleFlag(long style)
Sets the style of the window. Please note that some styles cannot be
changed after the window creation and that Refresh() might be called
after changing the others for the change to take place immediately.
- SetWindowVariant(*args, **kwargs)
- SetWindowVariant(int variant)
Sets the variant of the window/font size to use for this window,
if the platform supports variants, (for example, wxMac.)
- Show(*args, **kwargs)
- Show(bool show=True) -> bool
Shows or hides the window. You may need to call Raise for a top level
window if you want to bring it to top, although this is not needed if
Show is called immediately after the frame creation. Returns True if
the window has been shown or hidden or False if nothing was done
because it already was in the requested state.
- Thaw(*args, **kwargs)
- Thaw()
Reenables window updating after a previous call to Freeze. Calls to
Freeze/Thaw may be nested, so Thaw must be called the same number of times
that Freeze was before the window will be updated.
- UnregisterHotKey(*args, **kwargs)
- UnregisterHotKey(int hotkeyId) -> bool
Unregisters a system wide hotkey.
- Update(*args, **kwargs)
- Update()
Calling this method immediately repaints the invalidated area of the
window instead of waiting for the EVT_PAINT event to happen, (normally
this would usually only happen when the flow of control returns to the
event loop.) Notice that this function doesn't refresh the window and
does nothing if the window has been already repainted. Use Refresh
first if you want to immediately redraw the window (or some portion of
it) unconditionally.
- UpdateWindowUI(*args, **kwargs)
- UpdateWindowUI(long flags=UPDATE_UI_NONE)
This function sends EVT_UPDATE_UI events to the window. The particular
implementation depends on the window; for example a wx.ToolBar will
send an update UI event for each toolbar button, and a wx.Frame will
send an update UI event for each menubar menu item. You can call this
function from your application to ensure that your UI is up-to-date at
a particular point in time (as far as your EVT_UPDATE_UI handlers are
concerned). This may be necessary if you have called
wx.UpdateUIEvent.SetMode or wx.UpdateUIEvent.SetUpdateInterval to
limit the overhead that wxWindows incurs by sending update UI events
in idle time.
The flags should be a bitlist of one or more of the following values:
wx.UPDATE_UI_NONE No particular value
wx.UPDATE_UI_RECURSE Call the function for descendants
wx.UPDATE_UI_FROMIDLE Invoked from OnIdle
If you are calling this function from an OnIdle function, make sure
you pass the wx.UPDATE_UI_FROMIDLE flag, since this tells the window to
only update the UI elements that need to be updated in idle time. Some
windows update their elements only when necessary, for example when a
menu is about to be shown. The following is an example of how to call
UpdateWindowUI from an idle function.
def OnIdle(self, evt):
if wx.UpdateUIEvent.CanUpdate(self):
UpdateWindowUI(wx.UPDATE_UI_FROMIDLE);
- WarpPointer(*args, **kwargs)
- WarpPointer(int x, int y)
Moves the pointer to the given position on the window.
NOTE: This function is not supported under Mac because Apple Human
Interface Guidelines forbid moving the mouse cursor programmatically.
Static methods inherited from Window:
- FindFocus(*args, **kwargs)
- FindFocus() -> Window
Returns the window or control that currently has the keyboard focus,
or None.
- GetCapture(*args, **kwargs)
- GetCapture() -> Window
Returns the window which currently captures the mouse or None
- NewControlId(*args, **kwargs)
- NewControlId() -> int
Generate a control id for the controls which were not given one.
- NextControlId(*args, **kwargs)
- NextControlId(int winid) -> int
Get the id of the control following the one with the given
(autogenerated) id
- PrevControlId(*args, **kwargs)
- PrevControlId(int winid) -> int
Get the id of the control preceding the one with the given
(autogenerated) id
Methods inherited from EvtHandler:
- AddPendingEvent(*args, **kwargs)
- AddPendingEvent(Event event)
- Bind(self, event, handler, source=None, id=-1, id2=-1)
- Bind an event to an event handler.
event One of the EVT_* objects that specifies the
type of event to bind,
handler A callable object to be invoked when the event
is delivered to self. Pass None to disconnect an
event handler.
source Sometimes the event originates from a different window
than self, but you still want to catch it in self. (For
example, a button event delivered to a frame.) By
passing the source of the event, the event handling
system is able to differentiate between the same event
type from different controls.
id,id2 Used for menu IDs or for event types that require a
range of IDs
- Connect(*args, **kwargs)
- Connect(int id, int lastId, int eventType, PyObject func)
- Disconnect(*args, **kwargs)
- Disconnect(int id, int lastId=-1, wxEventType eventType=wxEVT_NULL) -> bool
- GetEvtHandlerEnabled(*args, **kwargs)
- GetEvtHandlerEnabled() -> bool
- GetNextHandler(*args, **kwargs)
- GetNextHandler() -> EvtHandler
- GetPreviousHandler(*args, **kwargs)
- GetPreviousHandler() -> EvtHandler
- ProcessEvent(*args, **kwargs)
- ProcessEvent(Event event) -> bool
- ProcessPendingEvents(*args, **kwargs)
- ProcessPendingEvents()
- SetEvtHandlerEnabled(*args, **kwargs)
- SetEvtHandlerEnabled(bool enabled)
- SetNextHandler(*args, **kwargs)
- SetNextHandler(EvtHandler handler)
- SetPreviousHandler(*args, **kwargs)
- SetPreviousHandler(EvtHandler handler)
Methods inherited from Object:
- GetClassName(*args, **kwargs)
- GetClassName() -> String
Returns the class name of the C++ object using wxRTTI.
Data and other attributes inherited from Object:
- __dict__ = <dictproxy object at 0x01D96850>
- dictionary for instance variables (if defined)
- __weakref__ = <attribute '__weakref__' of 'Object' objects>
- list of weak references to the object (if defined)
|
class ChooseDriverPage(BasePage) |
|
Choice of database driver |
|
- Method resolution order:
- ChooseDriverPage
- BasePage
- PyWizardPage
- WizardPage
- Panel
- Window
- EvtHandler
- Object
- object
Methods defined here:
- CreateControls(self, style=0)
- Create the controls for choosing the dbdriver
- GetNext(self)
- Get the next page in this wizard
This will be looking to retrieve a driver-specific
page for setting up the driver-specific specifier
details which are the database-related, as distinct
from user and password related.
- OnChoiceChanged(self, event=None)
- Update description on property change
Data and other attributes defined here:
- message = 'The system needs to know which database driver m...system in which your database is (to be)\nstored.\n'
Methods inherited from BasePage:
- GetPrev(self)
- Retrieve the previous window in the series
- SetNext(self, nextWindow)
- Set the next window in the chain of Windows
- SetPrev(self, previousWindow)
- Set the previous window in the chain of Windows
- __init__(self, parent, bitmap=None, resource=None, value=None, title='Choose Database Driver')
- Initialize the BasePage object
- __repr__(self)
Data and other attributes inherited from BasePage:
- next = None
- previous = None
Methods inherited from PyWizardPage:
- Create(*args, **kwargs)
- Create(Wizard parent, Bitmap bitmap=wxNullBitmap, String resource=EmptyString) -> bool
- base_AcceptsFocus(*args, **kwargs)
- base_AcceptsFocus() -> bool
- base_AcceptsFocusFromKeyboard(*args, **kwargs)
- base_AcceptsFocusFromKeyboard() -> bool
- base_AddChild(*args, **kwargs)
- base_AddChild(Window child)
- base_DoGetBestSize(*args, **kwargs)
- base_DoGetBestSize() -> Size
- base_DoGetClientSize(*args, **kwargs)
- base_DoGetClientSize() -> (width, height)
- base_DoGetPosition(*args, **kwargs)
- base_DoGetPosition() -> (x,y)
- base_DoGetSize(*args, **kwargs)
- base_DoGetSize() -> (width, height)
- base_DoGetVirtualSize(*args, **kwargs)
- base_DoGetVirtualSize() -> Size
- base_DoMoveWindow(*args, **kwargs)
- base_DoMoveWindow(int x, int y, int width, int height)
- base_DoSetClientSize(*args, **kwargs)
- base_DoSetClientSize(int width, int height)
- base_DoSetSize(*args, **kwargs)
- base_DoSetSize(int x, int y, int width, int height, int sizeFlags=SIZE_AUTO)
- base_DoSetVirtualSize(*args, **kwargs)
- base_DoSetVirtualSize(int x, int y)
- base_GetMaxSize(*args, **kwargs)
- base_GetMaxSize() -> Size
- base_InitDialog(*args, **kwargs)
- base_InitDialog()
- base_RemoveChild(*args, **kwargs)
- base_RemoveChild(Window child)
- base_TransferDataFromWindow(*args, **kwargs)
- base_TransferDataFromWindow() -> bool
- base_TransferDataToWindow(*args, **kwargs)
- base_TransferDataToWindow() -> bool
- base_Validate(*args, **kwargs)
- base_Validate() -> bool
Methods inherited from WizardPage:
- GetBitmap(*args, **kwargs)
- GetBitmap() -> Bitmap
Methods inherited from Panel:
- InitDialog(*args, **kwargs)
- InitDialog()
Methods inherited from Window:
- AcceptsFocus(*args, **kwargs)
- AcceptsFocus() -> bool
Can this window have focus?
- AcceptsFocusFromKeyboard(*args, **kwargs)
- AcceptsFocusFromKeyboard() -> bool
Can this window be given focus by keyboard navigation? if not, the
only way to give it focus (provided it accepts it at all) is to click
it.
- AddChild(*args, **kwargs)
- AddChild(Window child)
Adds a child window. This is called automatically by window creation
functions so should not be required by the application programmer.
- CaptureMouse(*args, **kwargs)
- CaptureMouse()
Directs all mouse input to this window. Call wx.Window.ReleaseMouse to
release the capture.
Note that wxWindows maintains the stack of windows having captured the
mouse and when the mouse is released the capture returns to the window
which had had captured it previously and it is only really released if
there were no previous window. In particular, this means that you must
release the mouse as many times as you capture it.
- Center(*args, **kwargs)
- Center(int direction=BOTH)
Centers the window. The parameter specifies the direction for
cetering, and may be wx.HORIZONTAL, wx.VERTICAL or wx.BOTH. It may
also include wx.CENTER_ON_SCREEN flag if you want to center the window
on the entire screen and not on its parent window. If it is a
top-level window and has no parent then it will always be centered
relative to the screen.
- CenterOnParent(*args, **kwargs)
- CenterOnParent(int dir=BOTH)
Center with respect to the the parent window
- CenterOnScreen(*args, **kwargs)
- CenterOnScreen(int dir=BOTH)
Center on screen (only works for top level windows)
- Centre = Center(*args, **kwargs)
- Center(int direction=BOTH)
Centers the window. The parameter specifies the direction for
cetering, and may be wx.HORIZONTAL, wx.VERTICAL or wx.BOTH. It may
also include wx.CENTER_ON_SCREEN flag if you want to center the window
on the entire screen and not on its parent window. If it is a
top-level window and has no parent then it will always be centered
relative to the screen.
- CentreOnParent = CenterOnParent(*args, **kwargs)
- CenterOnParent(int dir=BOTH)
Center with respect to the the parent window
- CentreOnScreen = CenterOnScreen(*args, **kwargs)
- CenterOnScreen(int dir=BOTH)
Center on screen (only works for top level windows)
- ClearBackground(*args, **kwargs)
- ClearBackground()
Clears the window by filling it with the current background
colour. Does not cause an erase background event to be generated.
- ClientToScreen(*args, **kwargs)
- ClientToScreen(Point pt) -> Point
Converts to screen coordinates from coordinates relative to this window.
- ClientToScreenXY(*args, **kwargs)
- ClientToScreenXY(int x, int y) -> (x,y)
Converts to screen coordinates from coordinates relative to this window.
- Close(*args, **kwargs)
- Close(bool force=False) -> bool
This function simply generates a EVT_CLOSE event whose handler usually
tries to close the window. It doesn't close the window itself,
however. If force is False (the default) then the window's close
handler will be allowed to veto the destruction of the window.
Usually Close is only used with the top level windows (wx.Frame and
wx.Dialog classes) as the others are not supposed to have any special
EVT_CLOSE logic.
The close handler should check whether the window is being deleted
forcibly, using wx.CloseEvent.GetForce, in which case it should
destroy the window using wx.Window.Destroy.
Note that calling Close does not guarantee that the window will be
destroyed; but it provides a way to simulate a manual close of a
window, which may or may not be implemented by destroying the
window. The default EVT_CLOSE handler for wx.Dialog does not
necessarily delete the dialog, since it will simply simulate an
wxID_CANCEL event which is handled by the appropriate button event
handler and may do anything at all.
To guarantee that the window will be destroyed, call wx.Window.Destroy
instead.
- ConvertDialogPointToPixels(*args, **kwargs)
- ConvertDialogPointToPixels(Point pt) -> Point
Converts a point or size from dialog units to pixels. Dialog units
are used for maintaining a dialog's proportions even if the font
changes. For the x dimension, the dialog units are multiplied by the
average character width and then divided by 4. For the y dimension,
the dialog units are multiplied by the average character height and
then divided by 8.
- ConvertDialogSizeToPixels(*args, **kwargs)
- ConvertDialogSizeToPixels(Size sz) -> Size
Converts a point or size from dialog units to pixels. Dialog units
are used for maintaining a dialog's proportions even if the font
changes. For the x dimension, the dialog units are multiplied by the
average character width and then divided by 4. For the y dimension,
the dialog units are multiplied by the average character height and
then divided by 8.
- ConvertPixelPointToDialog(*args, **kwargs)
- ConvertPixelPointToDialog(Point pt) -> Point
- ConvertPixelSizeToDialog(*args, **kwargs)
- ConvertPixelSizeToDialog(Size sz) -> Size
- DLG_PNT(*args, **kwargs)
- DLG_PNT(Point pt) -> Point
Converts a point or size from dialog units to pixels. Dialog units
are used for maintaining a dialog's proportions even if the font
changes. For the x dimension, the dialog units are multiplied by the
average character width and then divided by 4. For the y dimension,
the dialog units are multiplied by the average character height and
then divided by 8.
- DLG_SZE(*args, **kwargs)
- DLG_SZE(Size sz) -> Size
Converts a point or size from dialog units to pixels. Dialog units
are used for maintaining a dialog's proportions even if the font
changes. For the x dimension, the dialog units are multiplied by the
average character width and then divided by 4. For the y dimension,
the dialog units are multiplied by the average character height and
then divided by 8.
- Destroy(*args, **kwargs)
- Destroy() -> bool
Destroys the window safely. Frames and dialogs are not destroyed
immediately when this function is called -- they are added to a list
of windows to be deleted on idle time, when all the window's events
have been processed. This prevents problems with events being sent to
non-existent windows.
Returns True if the window has either been successfully deleted, or it
has been added to the list of windows pending real deletion.
- DestroyChildren(*args, **kwargs)
- DestroyChildren() -> bool
Destroys all children of a window. Called automatically by the destructor.
- Disable(*args, **kwargs)
- Disable() -> bool
Disables the window, same as Enable(false).
- DragAcceptFiles(*args, **kwargs)
- DragAcceptFiles(bool accept)
Enables or disables eligibility for drop file events, EVT_DROP_FILES.
Only available on Windows.
- Enable(*args, **kwargs)
- Enable(bool enable=True) -> bool
Enable or disable the window for user input. Note that when a parent
window is disabled, all of its children are disabled as well and they
are reenabled again when the parent is. Returns true if the window
has been enabled or disabled, false if nothing was done, i.e. if the
window had already been in the specified state.
- FindWindowById(*args, **kwargs)
- FindWindowById(long winid) -> Window
Find a chld of this window by window ID
- FindWindowByName(*args, **kwargs)
- FindWindowByName(String name) -> Window
Find a child of this window by name
- Fit(*args, **kwargs)
- Fit()
Sizes the window so that it fits around its subwindows. This function
won't do anything if there are no subwindows and will only really work
correctly if sizers are used for the subwindows layout. Also, if the
window has exactly one subwindow it is better (faster and the result
is more precise as Fit adds some margin to account for fuzziness of
its calculations) to call window.SetClientSize(child.GetSize())
instead of calling Fit.
- FitInside(*args, **kwargs)
- FitInside()
Similar to Fit, but sizes the interior (virtual) size of a
window. Mainly useful with scrolled windows to reset scrollbars after
sizing changes that do not trigger a size event, and/or scrolled
windows without an interior sizer. This function similarly won't do
anything if there are no subwindows.
- Freeze(*args, **kwargs)
- Freeze()
Freezes the window or, in other words, prevents any updates from taking place
on screen, the window is not redrawn at all. Thaw must be called to reenable
window redrawing. Calls to Freeze/Thaw may be nested, with the actual Thaw
being delayed until all the nesting has been undone.
This method is useful for visual appearance optimization (for example,
it is a good idea to use it before inserting large amount of text into
a wxTextCtrl under wxGTK) but is not implemented on all platforms nor
for all controls so it is mostly just a hint to wxWindows and not a
mandatory directive.
- GetAcceleratorTable(*args, **kwargs)
- GetAcceleratorTable() -> AcceleratorTable
Gets the accelerator table for this window.
- GetAdjustedBestSize(*args, **kwargs)
- GetAdjustedBestSize() -> Size
This method is similar to GetBestSize, except in one
thing. GetBestSize should return the minimum untruncated size of the
window, while this method will return the largest of BestSize and any
user specified minimum size. ie. it is the minimum size the window
should currently be drawn at, not the minimal size it can possibly
tolerate.
- GetAutoLayout(*args, **kwargs)
- GetAutoLayout() -> bool
Returns the current autoLayout setting
- GetBackgroundColour(*args, **kwargs)
- GetBackgroundColour() -> Colour
Returns the background colour of the window.
- GetBestSize(*args, **kwargs)
- GetBestSize() -> Size
This functions returns the best acceptable minimal size for the
window, if applicable. For example, for a static text control, it will be
the minimal size such that the control label is not truncated. For
windows containing subwindows (suzh aswx.Panel), the size returned
by this function will be the same as the size the window would have
had after calling Fit.
- GetBestSizeTuple(*args, **kwargs)
- GetBestSizeTuple() -> (width, height)
This functions returns the best acceptable minimal size for the
window, if applicable. For example, for a static text control, it will be
the minimal size such that the control label is not truncated. For
windows containing subwindows (suzh aswx.Panel), the size returned
by this function will be the same as the size the window would have
had after calling Fit.
- GetBestVirtualSize(*args, **kwargs)
- GetBestVirtualSize() -> Size
Return the largest of ClientSize and BestSize (as determined by a
sizer, interior children, or other means)
- GetBorder(*args)
- GetBorder(long flags) -> int
GetBorder() -> int
Get border for the flags of this window
- GetCaret(*args, **kwargs)
- GetCaret() -> Caret
Returns the caret associated with the window.
- GetCharHeight(*args, **kwargs)
- GetCharHeight() -> int
Get the (average) character size for the current font.
- GetCharWidth(*args, **kwargs)
- GetCharWidth() -> int
Get the (average) character size for the current font.
- GetChildren(*args, **kwargs)
- GetChildren() -> PyObject
Returns a list of the window's children. NOTE: Currently this is a
copy of the child window list maintained by the window, so the return
value of this function is only valid as long as the window's children
do not change.
- GetClientAreaOrigin(*args, **kwargs)
- GetClientAreaOrigin() -> Point
Get the origin of the client area of the window relative to the
window's top left corner (the client area may be shifted because of
the borders, scrollbars, other decorations...)
- GetClientRect(*args, **kwargs)
- GetClientRect() -> Rect
Get the client area position and size as a wx.Rect object.
- GetClientSize(*args, **kwargs)
- GetClientSize() -> Size
This gets the size of the window's 'client area' in pixels. The client
area is the area which may be drawn on by the programmer, excluding
title bar, border, scrollbars, etc.
- GetClientSizeTuple(*args, **kwargs)
- GetClientSizeTuple() -> (width, height)
This gets the size of the window's 'client area' in pixels. The client
area is the area which may be drawn on by the programmer, excluding
title bar, border, scrollbars, etc.
- GetConstraints(*args, **kwargs)
- GetConstraints() -> LayoutConstraints
Returns a pointer to the window's layout constraints, or None if there
are none.
- GetContainingSizer(*args, **kwargs)
- GetContainingSizer() -> Sizer
Return the sizer that this window is a member of, if any, otherwise None.
- GetCursor(*args, **kwargs)
- GetCursor() -> Cursor
Return the cursor associated with this window.
- GetDefaultItem(*args, **kwargs)
- GetDefaultItem() -> Window
Get the default child of this parent, i.e. the one which is activated
by pressing <Enter> such as the OK button on a wx.Dialog.
- GetDropTarget(*args, **kwargs)
- GetDropTarget() -> DropTarget
Returns the associated drop target, which may be None.
- GetEventHandler(*args, **kwargs)
- GetEventHandler() -> EvtHandler
Returns the event handler for this window. By default, the window is
its own event handler.
- GetExtraStyle(*args, **kwargs)
- GetExtraStyle() -> long
Returns the extra style bits for the window.
- GetFont(*args, **kwargs)
- GetFont() -> Font
Returns the default font used for this window.
- GetForegroundColour(*args, **kwargs)
- GetForegroundColour() -> Colour
Returns the foreground colour of the window. The interpretation of
foreground colour is dependent on the window class; it may be the text
colour or other colour, or it may not be used at all.
- GetFullTextExtent(*args, **kwargs)
- GetFullTextExtent(String string, Font font=None) ->
(width, height, descent, externalLeading)
Get the width, height, decent and leading of the text using the
current or specified font.
- GetGrandParent(*args, **kwargs)
- GetGrandParent() -> Window
Returns the parent of the parent of this window, or None if there isn't one.
- GetHandle(*args, **kwargs)
- GetHandle() -> long
Returns the platform-specific handle (as a long integer) of the
physical window. Currently on wxMac it returns the handle of the
toplevel parent of the window.
- GetHelpText(*args, **kwargs)
- GetHelpText() -> String
Gets the help text to be used as context-sensitive help for this
window. Note that the text is actually stored by the current
wxHelpProvider implementation, and not in the window object itself.
- GetId(*args, **kwargs)
- GetId() -> int
Returns the identifier of the window. Each window has an integer
identifier. If the application has not provided one (or the default Id
-1 is used) then an unique identifier with a negative value will be
generated.
- GetLabel(*args, **kwargs)
- GetLabel() -> String
Generic way of getting a label from any window, for
identification purposes. The interpretation of this function
differs from class to class. For frames and dialogs, the value
returned is the title. For buttons or static text controls, it is
the button text. This function can be useful for meta-programs
(such as testing tools or special-needs access programs) which
need to identify windows by name.
- GetMaxHeight(*args, **kwargs)
- GetMaxHeight() -> int
- GetMaxSize(*args, **kwargs)
- GetMaxSize() -> Size
- GetMaxWidth(*args, **kwargs)
- GetMaxWidth() -> int
- GetMinHeight(*args, **kwargs)
- GetMinHeight() -> int
- GetMinWidth(*args, **kwargs)
- GetMinWidth() -> int
- GetName(*args, **kwargs)
- GetName() -> String
Returns the window's name. This name is not guaranteed to be
unique; it is up to the programmer to supply an appropriate name
in the window constructor or via wx.Window.SetName.
- GetParent(*args, **kwargs)
- GetParent() -> Window
Returns the parent window of this window, or None if there isn't one.
- GetPosition(*args, **kwargs)
- GetPosition() -> Point
Get the window's position.
- GetPositionTuple(*args, **kwargs)
- GetPositionTuple() -> (x,y)
Get the window's position.
- GetRect(*args, **kwargs)
- GetRect() -> Rect
Returns the size and position of the window as a wx.Rect object.
- GetScrollPos(*args, **kwargs)
- GetScrollPos(int orientation) -> int
Returns the built-in scrollbar position.
- GetScrollRange(*args, **kwargs)
- GetScrollRange(int orientation) -> int
Returns the built-in scrollbar range.
- GetScrollThumb(*args, **kwargs)
- GetScrollThumb(int orientation) -> int
Returns the built-in scrollbar thumb size.
- GetSize(*args, **kwargs)
- GetSize() -> Size
Get the window size.
- GetSizeTuple(*args, **kwargs)
- GetSizeTuple() -> (width, height)
Get the window size.
- GetSizer(*args, **kwargs)
- GetSizer() -> Sizer
Return the sizer associated with the window by a previous call to
SetSizer or None if there isn't one.
- GetTextExtent(*args, **kwargs)
- GetTextExtent(String string) -> (width, height)
Get the width and height of the text using the current font.
- GetThemeEnabled(*args, **kwargs)
- GetThemeEnabled() -> bool
Return the themeEnabled flag.
- GetTitle(*args, **kwargs)
- GetTitle() -> String
Gets the window's title. Applicable only to frames and dialogs.
- GetToolTip(*args, **kwargs)
- GetToolTip() -> ToolTip
get the associated tooltip or None if none
- GetUpdateClientRect(*args, **kwargs)
- GetUpdateClientRect() -> Rect
Get the update rectangle region bounding box in client coords.
- GetUpdateRegion(*args, **kwargs)
- GetUpdateRegion() -> Region
Returns the region specifying which parts of the window have been
damaged. Should only be called within an EVT_PAINT handler.
- GetValidator(*args, **kwargs)
- GetValidator() -> Validator
Returns a pointer to the current validator for the window, or None if
there is none.
- GetVirtualSize(*args, **kwargs)
- GetVirtualSize() -> Size
Get the the virtual size of the window in pixels. For most windows
this is just the client area of the window, but for some like scrolled
windows it is more or less independent of the screen window size.
- GetVirtualSizeTuple(*args, **kwargs)
- GetVirtualSizeTuple() -> (width, height)
Get the the virtual size of the window in pixels. For most windows
this is just the client area of the window, but for some like scrolled
windows it is more or less independent of the screen window size.
- GetWindowStyle = GetWindowStyleFlag(*args, **kwargs)
- GetWindowStyleFlag() -> long
Gets the window style that was passed to the constructor or Create
method.
- GetWindowStyleFlag(*args, **kwargs)
- GetWindowStyleFlag() -> long
Gets the window style that was passed to the constructor or Create
method.
- GetWindowVariant(*args, **kwargs)
- GetWindowVariant() -> int
- HasCapture(*args, **kwargs)
- HasCapture() -> bool
Returns true if this window has the current mouse capture.
- HasFlag(*args, **kwargs)
- HasFlag(int flag) -> bool
Test if the given style is set for this window.
- HasScrollbar(*args, **kwargs)
- HasScrollbar(int orient) -> bool
Does the window have the scrollbar for this orientation?
- Hide(*args, **kwargs)
- Hide() -> bool
Equivalent to calling Show(False).
- HitTest(*args, **kwargs)
- HitTest(Point pt) -> int
Test where the given (in client coords) point lies
- HitTestXY(*args, **kwargs)
- HitTestXY(int x, int y) -> int
Test where the given (in client coords) point lies
- IsBeingDeleted(*args, **kwargs)
- IsBeingDeleted() -> bool
Is the window in the process of being deleted?
- IsEnabled(*args, **kwargs)
- IsEnabled() -> bool
Returns true if the window is enabled for input, false otherwise.
- IsExposed(*args, **kwargs)
- IsExposed(int x, int y, int w=1, int h=1) -> bool
Returns true if the given point or rectangle area has been exposed
since the last repaint. Call this in an paint event handler to
optimize redrawing by only redrawing those areas, which have been
exposed.
- IsExposedPoint(*args, **kwargs)
- IsExposedPoint(Point pt) -> bool
Returns true if the given point or rectangle area has been exposed
since the last repaint. Call this in an paint event handler to
optimize redrawing by only redrawing those areas, which have been
exposed.
- IsExposedRect(*args, **kwargs)
- IsExposedRect(Rect rect) -> bool
Returns true if the given point or rectangle area has been exposed
since the last repaint. Call this in an paint event handler to
optimize redrawing by only redrawing those areas, which have been
exposed.
- IsRetained(*args, **kwargs)
- IsRetained() -> bool
Returns true if the window is retained, false otherwise. Retained
windows are only available on X platforms.
- IsShown(*args, **kwargs)
- IsShown() -> bool
Returns true if the window is shown, false if it has been hidden.
- IsTopLevel(*args, **kwargs)
- IsTopLevel() -> bool
Returns true if the given window is a top-level one. Currently all
frames and dialogs are always considered to be top-level windows (even
if they have a parent window).
- Layout(*args, **kwargs)
- Layout() -> bool
Invokes the constraint-based layout algorithm or the sizer-based
algorithm for this window. See SetAutoLayout: when auto layout is on,
this function gets called automatically by the default EVT_SIZE
handler when the window is resized.
- LineDown(*args, **kwargs)
- LineDown() -> bool
This is just a wrapper for ScrollLines(1).
- LineUp(*args, **kwargs)
- LineUp() -> bool
This is just a wrapper for ScrollLines(-1).
- Lower(*args, **kwargs)
- Lower()
Lowers the window to the bottom of the window hierarchy if it is a
managed window (dialog or frame).
- MakeModal(*args, **kwargs)
- MakeModal(bool modal=True)
Disables all other windows in the application so that the user can
only interact with this window. Passing False will reverse this
effect.
- Move(*args, **kwargs)
- Move(Point pt, int flags=SIZE_USE_EXISTING)
Moves the window to the given position.
- MoveXY(*args, **kwargs)
- MoveXY(int x, int y, int flags=SIZE_USE_EXISTING)
Moves the window to the given position.
- OnPaint(*args, **kwargs)
- OnPaint(PaintEvent event)
- PageDown(*args, **kwargs)
- PageDown() -> bool
This is just a wrapper for ScrollPages(1).
- PageUp(*args, **kwargs)
- PageUp() -> bool
This is just a wrapper for ScrollPages(-1).
- PopEventHandler(*args, **kwargs)
- PopEventHandler(bool deleteHandler=False) -> EvtHandler
Removes and returns the top-most event handler on the event handler
stack. If deleteHandler is True then the wx.EvtHandler object will be
destroyed after it is popped.
- PopupMenu(*args, **kwargs)
- PopupMenu(Menu menu, Point pos) -> bool
Pops up the given menu at the specified coordinates, relative to this
window, and returns control when the user has dismissed the menu. If a
menu item is selected, the corresponding menu event is generated and
will be processed as usual.
- PopupMenuXY(*args, **kwargs)
- PopupMenuXY(Menu menu, int x, int y) -> bool
Pops up the given menu at the specified coordinates, relative to this
window, and returns control when the user has dismissed the menu. If a
menu item is selected, the corresponding menu event is generated and
will be processed as usual.
- PostCreate(self, pre)
- Phase 3 of the 2-phase create <wink!>
Call this method after precreating the window with the 2-phase create method.
- PrepareDC(*args, **kwargs)
- PrepareDC(DC dc)
Call this function to prepare the device context for drawing a
scrolled image. It sets the device origin according to the current
scroll position.
- PushEventHandler(*args, **kwargs)
- PushEventHandler(EvtHandler handler)
Pushes this event handler onto the event handler stack for the window.
An event handler is an object that is capable of processing the events
sent to a window. By default, the window is its own event handler, but
an application may wish to substitute another, for example to allow
central implementation of event-handling for a variety of different
window classes.
wx.Window.PushEventHandler allows an application to set up a chain of
event handlers, where an event not handled by one event handler is
handed to the next one in the chain. Use wx.Window.PopEventHandler to
remove the event handler.
- Raise(*args, **kwargs)
- Raise()
Raises the window to the top of the window hierarchy if it is a
managed window (dialog or frame).
- Refresh(*args, **kwargs)
- Refresh(bool eraseBackground=True, Rect rect=None)
Mark the specified rectangle (or the whole window) as "dirty" so it
will be repainted. Causes an EVT_PAINT event to be generated and sent
to the window.
- RefreshRect(*args, **kwargs)
- RefreshRect(Rect rect)
Redraws the contents of the given rectangle: the area inside it will
be repainted. This is the same as Refresh but has a nicer syntax.
- RegisterHotKey(*args, **kwargs)
- RegisterHotKey(int hotkeyId, int modifiers, int keycode) -> bool
Registers a system wide hotkey. Every time the user presses the hotkey
registered here, this window will receive a hotkey event. It will
receive the event even if the application is in the background and
does not have the input focus because the user is working with some
other application. To bind an event handler function to this hotkey
use EVT_HOTKEY with an id equal to hotkeyId. Returns True if the
hotkey was registered successfully.
- ReleaseMouse(*args, **kwargs)
- ReleaseMouse()
Releases mouse input captured with wx.Window.CaptureMouse.
- RemoveChild(*args, **kwargs)
- RemoveChild(Window child)
Removes a child window. This is called automatically by window
deletion functions so should not be required by the application
programmer.
- RemoveEventHandler(*args, **kwargs)
- RemoveEventHandler(EvtHandler handler) -> bool
Find the given handler in the event handler chain and remove (but
not delete) it from the event handler chain, return True if it was
found and False otherwise (this also results in an assert failure so
this function should only be called when the handler is supposed to
be there.)
- Reparent(*args, **kwargs)
- Reparent(Window newParent) -> bool
Reparents the window, i.e the window will be removed from its current
parent window (e.g. a non-standard toolbar in a wxFrame) and then
re-inserted into another. Available on Windows and GTK. Returns True
if the parent was changed, False otherwise (error or newParent ==
oldParent)
- ScreenToClient(*args, **kwargs)
- ScreenToClient(Point pt) -> Point
Converts from screen to client window coordinates.
- ScreenToClientXY(*args, **kwargs)
- ScreenToClientXY(int x, int y) -> (x,y)
Converts from screen to client window coordinates.
- ScrollLines(*args, **kwargs)
- ScrollLines(int lines) -> bool
If the platform and window class supports it, scrolls the window by
the given number of lines down, if lines is positive, or up if lines
is negative. Returns True if the window was scrolled, False if it was
already on top/bottom and nothing was done.
- ScrollPages(*args, **kwargs)
- ScrollPages(int pages) -> bool
If the platform and window class supports it, scrolls the window by
the given number of pages down, if pages is positive, or up if pages
is negative. Returns True if the window was scrolled, False if it was
already on top/bottom and nothing was done.
- ScrollWindow(*args, **kwargs)
- ScrollWindow(int dx, int dy, Rect rect=None)
Physically scrolls the pixels in the window and move child windows
accordingly. Use this function to optimise your scrolling
implementations, to minimise the area that must be redrawn. Note that
it is rarely required to call this function from a user program.
dx: Amount to scroll horizontally.
dy: Amount to scroll vertically.
rect: Rectangle to invalidate. If this is None, the whole window
is invalidated. If you pass a rectangle corresponding to the
area of the window exposed by the scroll, your painting
handler can optimize painting by checking for the
invalidated region.
- SetAcceleratorTable(*args, **kwargs)
- SetAcceleratorTable(AcceleratorTable accel)
Sets the accelerator table for this window.
- SetAutoLayout(*args, **kwargs)
- SetAutoLayout(bool autoLayout)
Determines whether the Layout function will be called automatically
when the window is resized. It is called implicitly by SetSizer but
if you use SetConstraints you should call it manually or otherwise the
window layout won't be correctly updated when its size changes.
- SetBackgroundColour(*args, **kwargs)
- SetBackgroundColour(Colour colour) -> bool
Sets the background colour of the window. Returns True if the colour
was changed. The background colour is usually painted by the default
EVT_ERASE_BACKGROUND event handler function under Windows and
automatically under GTK.
Note that setting the background colour does not cause an immediate
refresh, so you may wish to call ClearBackground or Refresh after
calling this function.
Use this function with care under GTK+ as the new appearance of the
window might not look equally well when used with themes, i.e GTK+'s
ability to change its look as the user wishes with run-time loadable
modules.
- SetCaret(*args, **kwargs)
- SetCaret(Caret caret)
Sets the caret associated with the window.
- SetClientRect(*args, **kwargs)
- SetClientRect(Rect rect)
This sets the size of the window client area in pixels. Using this
function to size a window tends to be more device-independent than
wx.Window.SetSize, since the application need not worry about what
dimensions the border or title bar have when trying to fit the window
around panel items, for example.
- SetClientSize(*args, **kwargs)
- SetClientSize(Size size)
This sets the size of the window client area in pixels. Using this
function to size a window tends to be more device-independent than
wx.Window.SetSize, since the application need not worry about what
dimensions the border or title bar have when trying to fit the window
around panel items, for example.
- SetClientSizeWH(*args, **kwargs)
- SetClientSizeWH(int width, int height)
This sets the size of the window client area in pixels. Using this
function to size a window tends to be more device-independent than
wx.Window.SetSize, since the application need not worry about what
dimensions the border or title bar have when trying to fit the window
around panel items, for example.
- SetConstraints(*args, **kwargs)
- SetConstraints(LayoutConstraints constraints)
Sets the window to have the given layout constraints. If an existing
layout constraints object is already owned by the window, it will be
deleted. Pass None to disassociate and delete the window's current
constraints.
You must call SetAutoLayout to tell a window to use the constraints
automatically in its default EVT_SIZE handler; otherwise, you must
handle EVT_SIZE yourself and call Layout() explicitly. When setting
both a wx.LayoutConstraints and a wx.Sizer, only the sizer will have
effect.
- SetContainingSizer(*args, **kwargs)
- SetContainingSizer(Sizer sizer)
This normally does not need to be called by application code. It is
called internally when a window is added to a sizer, and is used so
the window can remove itself from the sizer when it is destroyed.
- SetCursor(*args, **kwargs)
- SetCursor(Cursor cursor) -> bool
Sets the window's cursor. Notice that the window cursor also sets it
for the children of the window implicitly.
The cursor may be wx.NullCursor in which case the window cursor will
be reset back to default.
- SetDefaultItem(*args, **kwargs)
- SetDefaultItem(Window child) -> Window
Set this child as default, return the old default.
- SetDimensions(*args, **kwargs)
- SetDimensions(int x, int y, int width, int height, int sizeFlags=SIZE_AUTO)
Sets the position and size of the window in pixels. The sizeFlags
parameter indicates the interpretation of the other params if they are
-1. wx.SIZE_AUTO*: a -1 indicates that a class-specific default
shoudl be used. wx.SIZE_USE_EXISTING: existing dimensions should be
used if -1 values are supplied. wxSIZE_ALLOW_MINUS_ONE: allow
dimensions of -1 and less to be interpreted as real dimensions, not
default values.
- SetDropTarget(*args, **kwargs)
- SetDropTarget(DropTarget dropTarget)
Associates a drop target with this window. If the window already has
a drop target, it is deleted.
- SetEventHandler(*args, **kwargs)
- SetEventHandler(EvtHandler handler)
Sets the event handler for this window. An event handler is an object
that is capable of processing the events sent to a window. By default,
the window is its own event handler, but an application may wish to
substitute another, for example to allow central implementation of
event-handling for a variety of different window classes.
It is usually better to use wx.Window.PushEventHandler since this sets
up a chain of event handlers, where an event not handled by one event
handler is handed to the next one in the chain.
- SetExtraStyle(*args, **kwargs)
- SetExtraStyle(long exStyle)
Sets the extra style bits for the window. Extra styles are the less
often used style bits which can't be set with the constructor or with
SetWindowStyleFlag()
- SetFocus(*args, **kwargs)
- SetFocus()
Set's the focus to this window, allowing it to receive keyboard input.
- SetFocusFromKbd(*args, **kwargs)
- SetFocusFromKbd()
Set focus to this window as the result of a keyboard action. Normally
only called internally.
- SetFont(*args, **kwargs)
- SetFont(Font font) -> bool
Sets the font for this window.
- SetForegroundColour(*args, **kwargs)
- SetForegroundColour(Colour colour) -> bool
Sets the foreground colour of the window. Returns True is the colour
was changed. The interpretation of foreground colour is dependent on
the window class; it may be the text colour or other colour, or it may
not be used at all.
- SetHelpText(*args, **kwargs)
- SetHelpText(String text)
Sets the help text to be used as context-sensitive help for this
window. Note that the text is actually stored by the current
wxHelpProvider implementation, and not in the window object itself.
- SetHelpTextForId(*args, **kwargs)
- SetHelpTextForId(String text)
Associate this help text with all windows with the same id as this
one.
- SetId(*args, **kwargs)
- SetId(int winid)
Sets the identifier of the window. Each window has an integer
identifier. If the application has not provided one, an identifier
will be generated. Normally, the identifier should be provided on
creation and should not be modified subsequently.
- SetLabel(*args, **kwargs)
- SetLabel(String label)
Set the text which the window shows in its label if applicable.
- SetName(*args, **kwargs)
- SetName(String name)
Sets the window's name. The window name is used for ressource
setting in X, it is not the same as the window title/label
- SetPosition = Move(*args, **kwargs)
- Move(Point pt, int flags=SIZE_USE_EXISTING)
Moves the window to the given position.
- SetRect(*args, **kwargs)
- SetRect(Rect rect, int sizeFlags=SIZE_AUTO)
Sets the position and size of the window in pixels using a wx.Rect.
- SetScrollPos(*args, **kwargs)
- SetScrollPos(int orientation, int pos, bool refresh=True)
Sets the position of one of the built-in scrollbars.
- SetScrollbar(*args, **kwargs)
- SetScrollbar(int orientation, int pos, int thumbvisible, int range,
bool refresh=True)
Sets the scrollbar properties of a built-in scrollbar.
orientation: Determines the scrollbar whose page size is to be
set. May be wx.HORIZONTAL or wx.VERTICAL.
position: The position of the scrollbar in scroll units.
thumbSize: The size of the thumb, or visible portion of the
scrollbar, in scroll units.
range: The maximum position of the scrollbar.
refresh: True to redraw the scrollbar, false otherwise.
- SetSize(*args, **kwargs)
- SetSize(Size size)
Sets the size of the window in pixels.
- SetSizeHints(*args, **kwargs)
- SetSizeHints(int minW, int minH, int maxW=-1, int maxH=-1, int incW=-1,
int incH=-1)
Allows specification of minimum and maximum window sizes, and window
size increments. If a pair of values is not set (or set to -1), the
default values will be used. If this function is called, the user
will not be able to size the window outside the given bounds. The
resizing increments are only significant under Motif or Xt.
- SetSizeWH(*args, **kwargs)
- SetSizeWH(int width, int height)
Sets the size of the window in pixels.
- SetSizer(*args, **kwargs)
- SetSizer(Sizer sizer, bool deleteOld=True)
Sets the window to have the given layout sizer. The window will then
own the object, and will take care of its deletion. If an existing
layout sizer object is already owned by the window, it will be deleted
if the deleteOld parameter is true. Note that this function will also
call SetAutoLayout implicitly with a True parameter if the sizer is
non-NoneL and False otherwise.
- SetSizerAndFit(*args, **kwargs)
- SetSizerAndFit(Sizer sizer, bool deleteOld=True)
The same as SetSizer, except it also sets the size hints for the
window based on the sizer's minimum size.
- SetThemeEnabled(*args, **kwargs)
- SetThemeEnabled(bool enableTheme)
This function tells a window if it should use the system's "theme"
code to draw the windows' background instead if its own background
drawing code. This will only have an effect on platforms that support
the notion of themes in user defined windows. One such platform is
GTK+ where windows can have (very colourful) backgrounds defined by a
user's selected theme.
Dialogs, notebook pages and the status bar have this flag set to true
by default so that the default look and feel is simulated best.
- SetTitle(*args, **kwargs)
- SetTitle(String title)
Sets the window's title. Applicable only to frames and dialogs.
- SetTmpDefaultItem(*args, **kwargs)
- SetTmpDefaultItem(Window win)
Set this child as temporary default
- SetToolTip(*args, **kwargs)
- SetToolTip(ToolTip tip)
Attach a tooltip to the window.
- SetToolTipString(*args, **kwargs)
- SetToolTipString(String tip)
Attach a tooltip to the window.
- SetValidator(*args, **kwargs)
- SetValidator(Validator validator)
Deletes the current validator (if any) and sets the window validator,
having called wx.Validator.Clone to create a new validator of this
type.
- SetVirtualSize(*args, **kwargs)
- SetVirtualSize(Size size)
Set the the virtual size of a window in pixels. For most windows this
is just the client area of the window, but for some like scrolled
windows it is more or less independent of the screen window size.
- SetVirtualSizeHints(*args, **kwargs)
- SetVirtualSizeHints(int minW, int minH, int maxW=-1, int maxH=-1)
Allows specification of minimum and maximum virtual window sizes. If a
pair of values is not set (or set to -1), the default values will be
used. If this function is called, the user will not be able to size
the virtual area of the window outside the given bounds.
- SetVirtualSizeWH(*args, **kwargs)
- SetVirtualSizeWH(int w, int h)
Set the the virtual size of a window in pixels. For most windows this
is just the client area of the window, but for some like scrolled
windows it is more or less independent of the screen window size.
- SetWindowStyle = SetWindowStyleFlag(*args, **kwargs)
- SetWindowStyleFlag(long style)
Sets the style of the window. Please note that some styles cannot be
changed after the window creation and that Refresh() might be called
after changing the others for the change to take place immediately.
- SetWindowStyleFlag(*args, **kwargs)
- SetWindowStyleFlag(long style)
Sets the style of the window. Please note that some styles cannot be
changed after the window creation and that Refresh() might be called
after changing the others for the change to take place immediately.
- SetWindowVariant(*args, **kwargs)
- SetWindowVariant(int variant)
Sets the variant of the window/font size to use for this window,
if the platform supports variants, (for example, wxMac.)
- Show(*args, **kwargs)
- Show(bool show=True) -> bool
Shows or hides the window. You may need to call Raise for a top level
window if you want to bring it to top, although this is not needed if
Show is called immediately after the frame creation. Returns True if
the window has been shown or hidden or False if nothing was done
because it already was in the requested state.
- Thaw(*args, **kwargs)
- Thaw()
Reenables window updating after a previous call to Freeze. Calls to
Freeze/Thaw may be nested, so Thaw must be called the same number of times
that Freeze was before the window will be updated.
- UnregisterHotKey(*args, **kwargs)
- UnregisterHotKey(int hotkeyId) -> bool
Unregisters a system wide hotkey.
- Update(*args, **kwargs)
- Update()
Calling this method immediately repaints the invalidated area of the
window instead of waiting for the EVT_PAINT event to happen, (normally
this would usually only happen when the flow of control returns to the
event loop.) Notice that this function doesn't refresh the window and
does nothing if the window has been already repainted. Use Refresh
first if you want to immediately redraw the window (or some portion of
it) unconditionally.
- UpdateWindowUI(*args, **kwargs)
- UpdateWindowUI(long flags=UPDATE_UI_NONE)
This function sends EVT_UPDATE_UI events to the window. The particular
implementation depends on the window; for example a wx.ToolBar will
send an update UI event for each toolbar button, and a wx.Frame will
send an update UI event for each menubar menu item. You can call this
function from your application to ensure that your UI is up-to-date at
a particular point in time (as far as your EVT_UPDATE_UI handlers are
concerned). This may be necessary if you have called
wx.UpdateUIEvent.SetMode or wx.UpdateUIEvent.SetUpdateInterval to
limit the overhead that wxWindows incurs by sending update UI events
in idle time.
The flags should be a bitlist of one or more of the following values:
wx.UPDATE_UI_NONE No particular value
wx.UPDATE_UI_RECURSE Call the function for descendants
wx.UPDATE_UI_FROMIDLE Invoked from OnIdle
If you are calling this function from an OnIdle function, make sure
you pass the wx.UPDATE_UI_FROMIDLE flag, since this tells the window to
only update the UI elements that need to be updated in idle time. Some
windows update their elements only when necessary, for example when a
menu is about to be shown. The following is an example of how to call
UpdateWindowUI from an idle function.
def OnIdle(self, evt):
if wx.UpdateUIEvent.CanUpdate(self):
UpdateWindowUI(wx.UPDATE_UI_FROMIDLE);
- WarpPointer(*args, **kwargs)
- WarpPointer(int x, int y)
Moves the pointer to the given position on the window.
NOTE: This function is not supported under Mac because Apple Human
Interface Guidelines forbid moving the mouse cursor programmatically.
Static methods inherited from Window:
- FindFocus(*args, **kwargs)
- FindFocus() -> Window
Returns the window or control that currently has the keyboard focus,
or None.
- GetCapture(*args, **kwargs)
- GetCapture() -> Window
Returns the window which currently captures the mouse or None
- NewControlId(*args, **kwargs)
- NewControlId() -> int
Generate a control id for the controls which were not given one.
- NextControlId(*args, **kwargs)
- NextControlId(int winid) -> int
Get the id of the control following the one with the given
(autogenerated) id
- PrevControlId(*args, **kwargs)
- PrevControlId(int winid) -> int
Get the id of the control preceding the one with the given
(autogenerated) id
Methods inherited from EvtHandler:
- AddPendingEvent(*args, **kwargs)
- AddPendingEvent(Event event)
- Bind(self, event, handler, source=None, id=-1, id2=-1)
- Bind an event to an event handler.
event One of the EVT_* objects that specifies the
type of event to bind,
handler A callable object to be invoked when the event
is delivered to self. Pass None to disconnect an
event handler.
source Sometimes the event originates from a different window
than self, but you still want to catch it in self. (For
example, a button event delivered to a frame.) By
passing the source of the event, the event handling
system is able to differentiate between the same event
type from different controls.
id,id2 Used for menu IDs or for event types that require a
range of IDs
- Connect(*args, **kwargs)
- Connect(int id, int lastId, int eventType, PyObject func)
- Disconnect(*args, **kwargs)
- Disconnect(int id, int lastId=-1, wxEventType eventType=wxEVT_NULL) -> bool
- GetEvtHandlerEnabled(*args, **kwargs)
- GetEvtHandlerEnabled() -> bool
- GetNextHandler(*args, **kwargs)
- GetNextHandler() -> EvtHandler
- GetPreviousHandler(*args, **kwargs)
- GetPreviousHandler() -> EvtHandler
- ProcessEvent(*args, **kwargs)
- ProcessEvent(Event event) -> bool
- ProcessPendingEvents(*args, **kwargs)
- ProcessPendingEvents()
- SetEvtHandlerEnabled(*args, **kwargs)
- SetEvtHandlerEnabled(bool enabled)
- SetNextHandler(*args, **kwargs)
- SetNextHandler(EvtHandler handler)
- SetPreviousHandler(*args, **kwargs)
- SetPreviousHandler(EvtHandler handler)
Methods inherited from Object:
- GetClassName(*args, **kwargs)
- GetClassName() -> String
Returns the class name of the C++ object using wxRTTI.
Data and other attributes inherited from Object:
- __dict__ = <dictproxy object at 0x01D96970>
- dictionary for instance variables (if defined)
- __weakref__ = <attribute '__weakref__' of 'Object' objects>
- list of weak references to the object (if defined)
|
class ConnectionSetupPage(BasePage) |
|
Setup of connection-specific specifier properties
dsn, username and password in particular |
|
- Method resolution order:
- ConnectionSetupPage
- BasePage
- PyWizardPage
- WizardPage
- Panel
- Window
- EvtHandler
- Object
- object
Methods defined here:
- CreateControls(self, style=0)
- Create the controls for choosing the dbdriver
- OnChoiceChanged(self, event=None)
- Update description on property change
- SetDriver(self, driver)
Data and other attributes defined here:
- message = 'The system needs to know how to connect to the\nd...imply specify the filename as the "data\nsource".\n'
Methods inherited from BasePage:
- GetNext(self)
- Retrieve the next window in the series
- GetPrev(self)
- Retrieve the previous window in the series
- SetNext(self, nextWindow)
- Set the next window in the chain of Windows
- SetPrev(self, previousWindow)
- Set the previous window in the chain of Windows
- __init__(self, parent, bitmap=None, resource=None, value=None, title='Choose Database Driver')
- Initialize the BasePage object
- __repr__(self)
Data and other attributes inherited from BasePage:
- next = None
- previous = None
Methods inherited from PyWizardPage:
- Create(*args, **kwargs)
- Create(Wizard parent, Bitmap bitmap=wxNullBitmap, String resource=EmptyString) -> bool
- base_AcceptsFocus(*args, **kwargs)
- base_AcceptsFocus() -> bool
- base_AcceptsFocusFromKeyboard(*args, **kwargs)
- base_AcceptsFocusFromKeyboard() -> bool
- base_AddChild(*args, **kwargs)
- base_AddChild(Window child)
- base_DoGetBestSize(*args, **kwargs)
- base_DoGetBestSize() -> Size
- base_DoGetClientSize(*args, **kwargs)
- base_DoGetClientSize() -> (width, height)
- base_DoGetPosition(*args, **kwargs)
- base_DoGetPosition() -> (x,y)
- base_DoGetSize(*args, **kwargs)
- base_DoGetSize() -> (width, height)
- base_DoGetVirtualSize(*args, **kwargs)
- base_DoGetVirtualSize() -> Size
- base_DoMoveWindow(*args, **kwargs)
- base_DoMoveWindow(int x, int y, int width, int height)
- base_DoSetClientSize(*args, **kwargs)
- base_DoSetClientSize(int width, int height)
- base_DoSetSize(*args, **kwargs)
- base_DoSetSize(int x, int y, int width, int height, int sizeFlags=SIZE_AUTO)
- base_DoSetVirtualSize(*args, **kwargs)
- base_DoSetVirtualSize(int x, int y)
- base_GetMaxSize(*args, **kwargs)
- base_GetMaxSize() -> Size
- base_InitDialog(*args, **kwargs)
- base_InitDialog()
- base_RemoveChild(*args, **kwargs)
- base_RemoveChild(Window child)
- base_TransferDataFromWindow(*args, **kwargs)
- base_TransferDataFromWindow() -> bool
- base_TransferDataToWindow(*args, **kwargs)
- base_TransferDataToWindow() -> bool
- base_Validate(*args, **kwargs)
- base_Validate() -> bool
Methods inherited from WizardPage:
- GetBitmap(*args, **kwargs)
- GetBitmap() -> Bitmap
Methods inherited from Panel:
- InitDialog(*args, **kwargs)
- InitDialog()
Methods inherited from Window:
- AcceptsFocus(*args, **kwargs)
- AcceptsFocus() -> bool
Can this window have focus?
- AcceptsFocusFromKeyboard(*args, **kwargs)
- AcceptsFocusFromKeyboard() -> bool
Can this window be given focus by keyboard navigation? if not, the
only way to give it focus (provided it accepts it at all) is to click
it.
- AddChild(*args, **kwargs)
- AddChild(Window child)
Adds a child window. This is called automatically by window creation
functions so should not be required by the application programmer.
- CaptureMouse(*args, **kwargs)
- CaptureMouse()
Directs all mouse input to this window. Call wx.Window.ReleaseMouse to
release the capture.
Note that wxWindows maintains the stack of windows having captured the
mouse and when the mouse is released the capture returns to the window
which had had captured it previously and it is only really released if
there were no previous window. In particular, this means that you must
release the mouse as many times as you capture it.
- Center(*args, **kwargs)
- Center(int direction=BOTH)
Centers the window. The parameter specifies the direction for
cetering, and may be wx.HORIZONTAL, wx.VERTICAL or wx.BOTH. It may
also include wx.CENTER_ON_SCREEN flag if you want to center the window
on the entire screen and not on its parent window. If it is a
top-level window and has no parent then it will always be centered
relative to the screen.
- CenterOnParent(*args, **kwargs)
- CenterOnParent(int dir=BOTH)
Center with respect to the the parent window
- CenterOnScreen(*args, **kwargs)
- CenterOnScreen(int dir=BOTH)
Center on screen (only works for top level windows)
- Centre = Center(*args, **kwargs)
- Center(int direction=BOTH)
Centers the window. The parameter specifies the direction for
cetering, and may be wx.HORIZONTAL, wx.VERTICAL or wx.BOTH. It may
also include wx.CENTER_ON_SCREEN flag if you want to center the window
on the entire screen and not on its parent window. If it is a
top-level window and has no parent then it will always be centered
relative to the screen.
- CentreOnParent = CenterOnParent(*args, **kwargs)
- CenterOnParent(int dir=BOTH)
Center with respect to the the parent window
- CentreOnScreen = CenterOnScreen(*args, **kwargs)
- CenterOnScreen(int dir=BOTH)
Center on screen (only works for top level windows)
- ClearBackground(*args, **kwargs)
- ClearBackground()
Clears the window by filling it with the current background
colour. Does not cause an erase background event to be generated.
- ClientToScreen(*args, **kwargs)
- ClientToScreen(Point pt) -> Point
Converts to screen coordinates from coordinates relative to this window.
- ClientToScreenXY(*args, **kwargs)
- ClientToScreenXY(int x, int y) -> (x,y)
Converts to screen coordinates from coordinates relative to this window.
- Close(*args, **kwargs)
- Close(bool force=False) -> bool
This function simply generates a EVT_CLOSE event whose handler usually
tries to close the window. It doesn't close the window itself,
however. If force is False (the default) then the window's close
handler will be allowed to veto the destruction of the window.
Usually Close is only used with the top level windows (wx.Frame and
wx.Dialog classes) as the others are not supposed to have any special
EVT_CLOSE logic.
The close handler should check whether the window is being deleted
forcibly, using wx.CloseEvent.GetForce, in which case it should
destroy the window using wx.Window.Destroy.
Note that calling Close does not guarantee that the window will be
destroyed; but it provides a way to simulate a manual close of a
window, which may or may not be implemented by destroying the
window. The default EVT_CLOSE handler for wx.Dialog does not
necessarily delete the dialog, since it will simply simulate an
wxID_CANCEL event which is handled by the appropriate button event
handler and may do anything at all.
To guarantee that the window will be destroyed, call wx.Window.Destroy
instead.
- ConvertDialogPointToPixels(*args, **kwargs)
- ConvertDialogPointToPixels(Point pt) -> Point
Converts a point or size from dialog units to pixels. Dialog units
are used for maintaining a dialog's proportions even if the font
changes. For the x dimension, the dialog units are multiplied by the
average character width and then divided by 4. For the y dimension,
the dialog units are multiplied by the average character height and
then divided by 8.
- ConvertDialogSizeToPixels(*args, **kwargs)
- ConvertDialogSizeToPixels(Size sz) -> Size
Converts a point or size from dialog units to pixels. Dialog units
are used for maintaining a dialog's proportions even if the font
changes. For the x dimension, the dialog units are multiplied by the
average character width and then divided by 4. For the y dimension,
the dialog units are multiplied by the average character height and
then divided by 8.
- ConvertPixelPointToDialog(*args, **kwargs)
- ConvertPixelPointToDialog(Point pt) -> Point
- ConvertPixelSizeToDialog(*args, **kwargs)
- ConvertPixelSizeToDialog(Size sz) -> Size
- DLG_PNT(*args, **kwargs)
- DLG_PNT(Point pt) -> Point
Converts a point or size from dialog units to pixels. Dialog units
are used for maintaining a dialog's proportions even if the font
changes. For the x dimension, the dialog units are multiplied by the
average character width and then divided by 4. For the y dimension,
the dialog units are multiplied by the average character height and
then divided by 8.
- DLG_SZE(*args, **kwargs)
- DLG_SZE(Size sz) -> Size
Converts a point or size from dialog units to pixels. Dialog units
are used for maintaining a dialog's proportions even if the font
changes. For the x dimension, the dialog units are multiplied by the
average character width and then divided by 4. For the y dimension,
the dialog units are multiplied by the average character height and
then divided by 8.
- Destroy(*args, **kwargs)
- Destroy() -> bool
Destroys the window safely. Frames and dialogs are not destroyed
immediately when this function is called -- they are added to a list
of windows to be deleted on idle time, when all the window's events
have been processed. This prevents problems with events being sent to
non-existent windows.
Returns True if the window has either been successfully deleted, or it
has been added to the list of windows pending real deletion.
- DestroyChildren(*args, **kwargs)
- DestroyChildren() -> bool
Destroys all children of a window. Called automatically by the destructor.
- Disable(*args, **kwargs)
- Disable() -> bool
Disables the window, same as Enable(false).
- DragAcceptFiles(*args, **kwargs)
- DragAcceptFiles(bool accept)
Enables or disables eligibility for drop file events, EVT_DROP_FILES.
Only available on Windows.
- Enable(*args, **kwargs)
- Enable(bool enable=True) -> bool
Enable or disable the window for user input. Note that when a parent
window is disabled, all of its children are disabled as well and they
are reenabled again when the parent is. Returns true if the window
has been enabled or disabled, false if nothing was done, i.e. if the
window had already been in the specified state.
- FindWindowById(*args, **kwargs)
- FindWindowById(long winid) -> Window
Find a chld of this window by window ID
- FindWindowByName(*args, **kwargs)
- FindWindowByName(String name) -> Window
Find a child of this window by name
- Fit(*args, **kwargs)
- Fit()
Sizes the window so that it fits around its subwindows. This function
won't do anything if there are no subwindows and will only really work
correctly if sizers are used for the subwindows layout. Also, if the
window has exactly one subwindow it is better (faster and the result
is more precise as Fit adds some margin to account for fuzziness of
its calculations) to call window.SetClientSize(child.GetSize())
instead of calling Fit.
- FitInside(*args, **kwargs)
- FitInside()
Similar to Fit, but sizes the interior (virtual) size of a
window. Mainly useful with scrolled windows to reset scrollbars after
sizing changes that do not trigger a size event, and/or scrolled
windows without an interior sizer. This function similarly won't do
anything if there are no subwindows.
- Freeze(*args, **kwargs)
- Freeze()
Freezes the window or, in other words, prevents any updates from taking place
on screen, the window is not redrawn at all. Thaw must be called to reenable
window redrawing. Calls to Freeze/Thaw may be nested, with the actual Thaw
being delayed until all the nesting has been undone.
This method is useful for visual appearance optimization (for example,
it is a good idea to use it before inserting large amount of text into
a wxTextCtrl under wxGTK) but is not implemented on all platforms nor
for all controls so it is mostly just a hint to wxWindows and not a
mandatory directive.
- GetAcceleratorTable(*args, **kwargs)
- GetAcceleratorTable() -> AcceleratorTable
Gets the accelerator table for this window.
- GetAdjustedBestSize(*args, **kwargs)
- GetAdjustedBestSize() -> Size
This method is similar to GetBestSize, except in one
thing. GetBestSize should return the minimum untruncated size of the
window, while this method will return the largest of BestSize and any
user specified minimum size. ie. it is the minimum size the window
should currently be drawn at, not the minimal size it can possibly
tolerate.
- GetAutoLayout(*args, **kwargs)
- GetAutoLayout() -> bool
Returns the current autoLayout setting
- GetBackgroundColour(*args, **kwargs)
- GetBackgroundColour() -> Colour
Returns the background colour of the window.
- GetBestSize(*args, **kwargs)
- GetBestSize() -> Size
This functions returns the best acceptable minimal size for the
window, if applicable. For example, for a static text control, it will be
the minimal size such that the control label is not truncated. For
windows containing subwindows (suzh aswx.Panel), the size returned
by this function will be the same as the size the window would have
had after calling Fit.
- GetBestSizeTuple(*args, **kwargs)
- GetBestSizeTuple() -> (width, height)
This functions returns the best acceptable minimal size for the
window, if applicable. For example, for a static text control, it will be
the minimal size such that the control label is not truncated. For
windows containing subwindows (suzh aswx.Panel), the size returned
by this function will be the same as the size the window would have
had after calling Fit.
- GetBestVirtualSize(*args, **kwargs)
- GetBestVirtualSize() -> Size
Return the largest of ClientSize and BestSize (as determined by a
sizer, interior children, or other means)
- GetBorder(*args)
- GetBorder(long flags) -> int
GetBorder() -> int
Get border for the flags of this window
- GetCaret(*args, **kwargs)
- GetCaret() -> Caret
Returns the caret associated with the window.
- GetCharHeight(*args, **kwargs)
- GetCharHeight() -> int
Get the (average) character size for the current font.
- GetCharWidth(*args, **kwargs)
- GetCharWidth() -> int
Get the (average) character size for the current font.
- GetChildren(*args, **kwargs)
- GetChildren() -> PyObject
Returns a list of the window's children. NOTE: Currently this is a
copy of the child window list maintained by the window, so the return
value of this function is only valid as long as the window's children
do not change.
- GetClientAreaOrigin(*args, **kwargs)
- GetClientAreaOrigin() -> Point
Get the origin of the client area of the window relative to the
window's top left corner (the client area may be shifted because of
the borders, scrollbars, other decorations...)
- GetClientRect(*args, **kwargs)
- GetClientRect() -> Rect
Get the client area position and size as a wx.Rect object.
- GetClientSize(*args, **kwargs)
- GetClientSize() -> Size
This gets the size of the window's 'client area' in pixels. The client
area is the area which may be drawn on by the programmer, excluding
title bar, border, scrollbars, etc.
- GetClientSizeTuple(*args, **kwargs)
- GetClientSizeTuple() -> (width, height)
This gets the size of the window's 'client area' in pixels. The client
area is the area which may be drawn on by the programmer, excluding
title bar, border, scrollbars, etc.
- GetConstraints(*args, **kwargs)
- GetConstraints() -> LayoutConstraints
Returns a pointer to the window's layout constraints, or None if there
are none.
- GetContainingSizer(*args, **kwargs)
- GetContainingSizer() -> Sizer
Return the sizer that this window is a member of, if any, otherwise None.
- GetCursor(*args, **kwargs)
- GetCursor() -> Cursor
Return the cursor associated with this window.
- GetDefaultItem(*args, **kwargs)
- GetDefaultItem() -> Window
Get the default child of this parent, i.e. the one which is activated
by pressing <Enter> such as the OK button on a wx.Dialog.
- GetDropTarget(*args, **kwargs)
- GetDropTarget() -> DropTarget
Returns the associated drop target, which may be None.
- GetEventHandler(*args, **kwargs)
- GetEventHandler() -> EvtHandler
Returns the event handler for this window. By default, the window is
its own event handler.
- GetExtraStyle(*args, **kwargs)
- GetExtraStyle() -> long
Returns the extra style bits for the window.
- GetFont(*args, **kwargs)
- GetFont() -> Font
Returns the default font used for this window.
- GetForegroundColour(*args, **kwargs)
- GetForegroundColour() -> Colour
Returns the foreground colour of the window. The interpretation of
foreground colour is dependent on the window class; it may be the text
colour or other colour, or it may not be used at all.
- GetFullTextExtent(*args, **kwargs)
- GetFullTextExtent(String string, Font font=None) ->
(width, height, descent, externalLeading)
Get the width, height, decent and leading of the text using the
current or specified font.
- GetGrandParent(*args, **kwargs)
- GetGrandParent() -> Window
Returns the parent of the parent of this window, or None if there isn't one.
- GetHandle(*args, **kwargs)
- GetHandle() -> long
Returns the platform-specific handle (as a long integer) of the
physical window. Currently on wxMac it returns the handle of the
toplevel parent of the window.
- GetHelpText(*args, **kwargs)
- GetHelpText() -> String
Gets the help text to be used as context-sensitive help for this
window. Note that the text is actually stored by the current
wxHelpProvider implementation, and not in the window object itself.
- GetId(*args, **kwargs)
- GetId() -> int
Returns the identifier of the window. Each window has an integer
identifier. If the application has not provided one (or the default Id
-1 is used) then an unique identifier with a negative value will be
generated.
- GetLabel(*args, **kwargs)
- GetLabel() -> String
Generic way of getting a label from any window, for
identification purposes. The interpretation of this function
differs from class to class. For frames and dialogs, the value
returned is the title. For buttons or static text controls, it is
the button text. This function can be useful for meta-programs
(such as testing tools or special-needs access programs) which
need to identify windows by name.
- GetMaxHeight(*args, **kwargs)
- GetMaxHeight() -> int
- GetMaxSize(*args, **kwargs)
- GetMaxSize() -> Size
- GetMaxWidth(*args, **kwargs)
- GetMaxWidth() -> int
- GetMinHeight(*args, **kwargs)
- GetMinHeight() -> int
- GetMinWidth(*args, **kwargs)
- GetMinWidth() -> int
- GetName(*args, **kwargs)
- GetName() -> String
Returns the window's name. This name is not guaranteed to be
unique; it is up to the programmer to supply an appropriate name
in the window constructor or via wx.Window.SetName.
- GetParent(*args, **kwargs)
- GetParent() -> Window
Returns the parent window of this window, or None if there isn't one.
- GetPosition(*args, **kwargs)
- GetPosition() -> Point
Get the window's position.
- GetPositionTuple(*args, **kwargs)
- GetPositionTuple() -> (x,y)
Get the window's position.
- GetRect(*args, **kwargs)
- GetRect() -> Rect
Returns the size and position of the window as a wx.Rect object.
- GetScrollPos(*args, **kwargs)
- GetScrollPos(int orientation) -> int
Returns the built-in scrollbar position.
- GetScrollRange(*args, **kwargs)
- GetScrollRange(int orientation) -> int
Returns the built-in scrollbar range.
- GetScrollThumb(*args, **kwargs)
- GetScrollThumb(int orientation) -> int
Returns the built-in scrollbar thumb size.
- GetSize(*args, **kwargs)
- GetSize() -> Size
Get the window size.
- GetSizeTuple(*args, **kwargs)
- GetSizeTuple() -> (width, height)
Get the window size.
- GetSizer(*args, **kwargs)
- GetSizer() -> Sizer
Return the sizer associated with the window by a previous call to
SetSizer or None if there isn't one.
- GetTextExtent(*args, **kwargs)
- GetTextExtent(String string) -> (width, height)
Get the width and height of the text using the current font.
- GetThemeEnabled(*args, **kwargs)
- GetThemeEnabled() -> bool
Return the themeEnabled flag.
- GetTitle(*args, **kwargs)
- GetTitle() -> String
Gets the window's title. Applicable only to frames and dialogs.
- GetToolTip(*args, **kwargs)
- GetToolTip() -> ToolTip
get the associated tooltip or None if none
- GetUpdateClientRect(*args, **kwargs)
- GetUpdateClientRect() -> Rect
Get the update rectangle region bounding box in client coords.
- GetUpdateRegion(*args, **kwargs)
- GetUpdateRegion() -> Region
Returns the region specifying which parts of the window have been
damaged. Should only be called within an EVT_PAINT handler.
- GetValidator(*args, **kwargs)
- GetValidator() -> Validator
Returns a pointer to the current validator for the window, or None if
there is none.
- GetVirtualSize(*args, **kwargs)
- GetVirtualSize() -> Size
Get the the virtual size of the window in pixels. For most windows
this is just the client area of the window, but for some like scrolled
windows it is more or less independent of the screen window size.
- GetVirtualSizeTuple(*args, **kwargs)
- GetVirtualSizeTuple() -> (width, height)
Get the the virtual size of the window in pixels. For most windows
this is just the client area of the window, but for some like scrolled
windows it is more or less independent of the screen window size.
- GetWindowStyle = GetWindowStyleFlag(*args, **kwargs)
- GetWindowStyleFlag() -> long
Gets the window style that was passed to the constructor or Create
method.
- GetWindowStyleFlag(*args, **kwargs)
- GetWindowStyleFlag() -> long
Gets the window style that was passed to the constructor or Create
method.
- GetWindowVariant(*args, **kwargs)
- GetWindowVariant() -> int
- HasCapture(*args, **kwargs)
- HasCapture() -> bool
Returns true if this window has the current mouse capture.
- HasFlag(*args, **kwargs)
- HasFlag(int flag) -> bool
Test if the given style is set for this window.
- HasScrollbar(*args, **kwargs)
- HasScrollbar(int orient) -> bool
Does the window have the scrollbar for this orientation?
- Hide(*args, **kwargs)
- Hide() -> bool
Equivalent to calling Show(False).
- HitTest(*args, **kwargs)
- HitTest(Point pt) -> int
Test where the given (in client coords) point lies
- HitTestXY(*args, **kwargs)
- HitTestXY(int x, int y) -> int
Test where the given (in client coords) point lies
- IsBeingDeleted(*args, **kwargs)
- IsBeingDeleted() -> bool
Is the window in the process of being deleted?
- IsEnabled(*args, **kwargs)
- IsEnabled() -> bool
Returns true if the window is enabled for input, false otherwise.
- IsExposed(*args, **kwargs)
- IsExposed(int x, int y, int w=1, int h=1) -> bool
Returns true if the given point or rectangle area has been exposed
since the last repaint. Call this in an paint event handler to
optimize redrawing by only redrawing those areas, which have been
exposed.
- IsExposedPoint(*args, **kwargs)
- IsExposedPoint(Point pt) -> bool
Returns true if the given point or rectangle area has been exposed
since the last repaint. Call this in an paint event handler to
optimize redrawing by only redrawing those areas, which have been
exposed.
- IsExposedRect(*args, **kwargs)
- IsExposedRect(Rect rect) -> bool
Returns true if the given point or rectangle area has been exposed
since the last repaint. Call this in an paint event handler to
optimize redrawing by only redrawing those areas, which have been
exposed.
- IsRetained(*args, **kwargs)
- IsRetained() -> bool
Returns true if the window is retained, false otherwise. Retained
windows are only available on X platforms.
- IsShown(*args, **kwargs)
- IsShown() -> bool
Returns true if the window is shown, false if it has been hidden.
- IsTopLevel(*args, **kwargs)
- IsTopLevel() -> bool
Returns true if the given window is a top-level one. Currently all
frames and dialogs are always considered to be top-level windows (even
if they have a parent window).
- Layout(*args, **kwargs)
- Layout() -> bool
Invokes the constraint-based layout algorithm or the sizer-based
algorithm for this window. See SetAutoLayout: when auto layout is on,
this function gets called automatically by the default EVT_SIZE
handler when the window is resized.
- LineDown(*args, **kwargs)
- LineDown() -> bool
This is just a wrapper for ScrollLines(1).
- LineUp(*args, **kwargs)
- LineUp() -> bool
This is just a wrapper for ScrollLines(-1).
- Lower(*args, **kwargs)
- Lower()
Lowers the window to the bottom of the window hierarchy if it is a
managed window (dialog or frame).
- MakeModal(*args, **kwargs)
- MakeModal(bool modal=True)
Disables all other windows in the application so that the user can
only interact with this window. Passing False will reverse this
effect.
- Move(*args, **kwargs)
- Move(Point pt, int flags=SIZE_USE_EXISTING)
Moves the window to the given position.
- MoveXY(*args, **kwargs)
- MoveXY(int x, int y, int flags=SIZE_USE_EXISTING)
Moves the window to the given position.
- OnPaint(*args, **kwargs)
- OnPaint(PaintEvent event)
- PageDown(*args, **kwargs)
- PageDown() -> bool
This is just a wrapper for ScrollPages(1).
- PageUp(*args, **kwargs)
- PageUp() -> bool
This is just a wrapper for ScrollPages(-1).
- PopEventHandler(*args, **kwargs)
- PopEventHandler(bool deleteHandler=False) -> EvtHandler
Removes and returns the top-most event handler on the event handler
stack. If deleteHandler is True then the wx.EvtHandler object will be
destroyed after it is popped.
- PopupMenu(*args, **kwargs)
- PopupMenu(Menu menu, Point pos) -> bool
Pops up the given menu at the specified coordinates, relative to this
window, and returns control when the user has dismissed the menu. If a
menu item is selected, the corresponding menu event is generated and
will be processed as usual.
- PopupMenuXY(*args, **kwargs)
- PopupMenuXY(Menu menu, int x, int y) -> bool
Pops up the given menu at the specified coordinates, relative to this
window, and returns control when the user has dismissed the menu. If a
menu item is selected, the corresponding menu event is generated and
will be processed as usual.
- PostCreate(self, pre)
- Phase 3 of the 2-phase create <wink!>
Call this method after precreating the window with the 2-phase create method.
- PrepareDC(*args, **kwargs)
- PrepareDC(DC dc)
Call this function to prepare the device context for drawing a
scrolled image. It sets the device origin according to the current
scroll position.
- PushEventHandler(*args, **kwargs)
- PushEventHandler(EvtHandler handler)
Pushes this event handler onto the event handler stack for the window.
An event handler is an object that is capable of processing the events
sent to a window. By default, the window is its own event handler, but
an application may wish to substitute another, for example to allow
central implementation of event-handling for a variety of different
window classes.
wx.Window.PushEventHandler allows an application to set up a chain of
event handlers, where an event not handled by one event handler is
handed to the next one in the chain. Use wx.Window.PopEventHandler to
remove the event handler.
- Raise(*args, **kwargs)
- Raise()
Raises the window to the top of the window hierarchy if it is a
managed window (dialog or frame).
- Refresh(*args, **kwargs)
- Refresh(bool eraseBackground=True, Rect rect=None)
Mark the specified rectangle (or the whole window) as "dirty" so it
will be repainted. Causes an EVT_PAINT event to be generated and sent
to the window.
- RefreshRect(*args, **kwargs)
- RefreshRect(Rect rect)
Redraws the contents of the given rectangle: the area inside it will
be repainted. This is the same as Refresh but has a nicer syntax.
- RegisterHotKey(*args, **kwargs)
- RegisterHotKey(int hotkeyId, int modifiers, int keycode) -> bool
Registers a system wide hotkey. Every time the user presses the hotkey
registered here, this window will receive a hotkey event. It will
receive the event even if the application is in the background and
does not have the input focus because the user is working with some
other application. To bind an event handler function to this hotkey
use EVT_HOTKEY with an id equal to hotkeyId. Returns True if the
hotkey was registered successfully.
- ReleaseMouse(*args, **kwargs)
- ReleaseMouse()
Releases mouse input captured with wx.Window.CaptureMouse.
- RemoveChild(*args, **kwargs)
- RemoveChild(Window child)
Removes a child window. This is called automatically by window
deletion functions so should not be required by the application
programmer.
- RemoveEventHandler(*args, **kwargs)
- RemoveEventHandler(EvtHandler handler) -> bool
Find the given handler in the event handler chain and remove (but
not delete) it from the event handler chain, return True if it was
found and False otherwise (this also results in an assert failure so
this function should only be called when the handler is supposed to
be there.)
- Reparent(*args, **kwargs)
- Reparent(Window newParent) -> bool
Reparents the window, i.e the window will be removed from its current
parent window (e.g. a non-standard toolbar in a wxFrame) and then
re-inserted into another. Available on Windows and GTK. Returns True
if the parent was changed, False otherwise (error or newParent ==
oldParent)
- ScreenToClient(*args, **kwargs)
- ScreenToClient(Point pt) -> Point
Converts from screen to client window coordinates.
- ScreenToClientXY(*args, **kwargs)
- ScreenToClientXY(int x, int y) -> (x,y)
Converts from screen to client window coordinates.
- ScrollLines(*args, **kwargs)
- ScrollLines(int lines) -> bool
If the platform and window class supports it, scrolls the window by
the given number of lines down, if lines is positive, or up if lines
is negative. Returns True if the window was scrolled, False if it was
already on top/bottom and nothing was done.
- ScrollPages(*args, **kwargs)
- ScrollPages(int pages) -> bool
If the platform and window class supports it, scrolls the window by
the given number of pages down, if pages is positive, or up if pages
is negative. Returns True if the window was scrolled, False if it was
already on top/bottom and nothing was done.
- ScrollWindow(*args, **kwargs)
- ScrollWindow(int dx, int dy, Rect rect=None)
Physically scrolls the pixels in the window and move child windows
accordingly. Use this function to optimise your scrolling
implementations, to minimise the area that must be redrawn. Note that
it is rarely required to call this function from a user program.
dx: Amount to scroll horizontally.
dy: Amount to scroll vertically.
rect: Rectangle to invalidate. If this is None, the whole window
is invalidated. If you pass a rectangle corresponding to the
area of the window exposed by the scroll, your painting
handler can optimize painting by checking for the
invalidated region.
- SetAcceleratorTable(*args, **kwargs)
- SetAcceleratorTable(AcceleratorTable accel)
Sets the accelerator table for this window.
- SetAutoLayout(*args, **kwargs)
- SetAutoLayout(bool autoLayout)
Determines whether the Layout function will be called automatically
when the window is resized. It is called implicitly by SetSizer but
if you use SetConstraints you should call it manually or otherwise the
window layout won't be correctly updated when its size changes.
- SetBackgroundColour(*args, **kwargs)
- SetBackgroundColour(Colour colour) -> bool
Sets the background colour of the window. Returns True if the colour
was changed. The background colour is usually painted by the default
EVT_ERASE_BACKGROUND event handler function under Windows and
automatically under GTK.
Note that setting the background colour does not cause an immediate
refresh, so you may wish to call ClearBackground or Refresh after
calling this function.
Use this function with care under GTK+ as the new appearance of the
window might not look equally well when used with themes, i.e GTK+'s
ability to change its look as the user wishes with run-time loadable
modules.
- SetCaret(*args, **kwargs)
- SetCaret(Caret caret)
Sets the caret associated with the window.
- SetClientRect(*args, **kwargs)
- SetClientRect(Rect rect)
This sets the size of the window client area in pixels. Using this
function to size a window tends to be more device-independent than
wx.Window.SetSize, since the application need not worry about what
dimensions the border or title bar have when trying to fit the window
around panel items, for example.
- SetClientSize(*args, **kwargs)
- SetClientSize(Size size)
This sets the size of the window client area in pixels. Using this
function to size a window tends to be more device-independent than
wx.Window.SetSize, since the application need not worry about what
dimensions the border or title bar have when trying to fit the window
around panel items, for example.
- SetClientSizeWH(*args, **kwargs)
- SetClientSizeWH(int width, int height)
This sets the size of the window client area in pixels. Using this
function to size a window tends to be more device-independent than
wx.Window.SetSize, since the application need not worry about what
dimensions the border or title bar have when trying to fit the window
around panel items, for example.
- SetConstraints(*args, **kwargs)
- SetConstraints(LayoutConstraints constraints)
Sets the window to have the given layout constraints. If an existing
layout constraints object is already owned by the window, it will be
deleted. Pass None to disassociate and delete the window's current
constraints.
You must call SetAutoLayout to tell a window to use the constraints
automatically in its default EVT_SIZE handler; otherwise, you must
handle EVT_SIZE yourself and call Layout() explicitly. When setting
both a wx.LayoutConstraints and a wx.Sizer, only the sizer will have
effect.
- SetContainingSizer(*args, **kwargs)
- SetContainingSizer(Sizer sizer)
This normally does not need to be called by application code. It is
called internally when a window is added to a sizer, and is used so
the window can remove itself from the sizer when it is destroyed.
- SetCursor(*args, **kwargs)
- SetCursor(Cursor cursor) -> bool
Sets the window's cursor. Notice that the window cursor also sets it
for the children of the window implicitly.
The cursor may be wx.NullCursor in which case the window cursor will
be reset back to default.
- SetDefaultItem(*args, **kwargs)
- SetDefaultItem(Window child) -> Window
Set this child as default, return the old default.
- SetDimensions(*args, **kwargs)
- SetDimensions(int x, int y, int width, int height, int sizeFlags=SIZE_AUTO)
Sets the position and size of the window in pixels. The sizeFlags
parameter indicates the interpretation of the other params if they are
-1. wx.SIZE_AUTO*: a -1 indicates that a class-specific default
shoudl be used. wx.SIZE_USE_EXISTING: existing dimensions should be
used if -1 values are supplied. wxSIZE_ALLOW_MINUS_ONE: allow
dimensions of -1 and less to be interpreted as real dimensions, not
default values.
- SetDropTarget(*args, **kwargs)
- SetDropTarget(DropTarget dropTarget)
Associates a drop target with this window. If the window already has
a drop target, it is deleted.
- SetEventHandler(*args, **kwargs)
- SetEventHandler(EvtHandler handler)
Sets the event handler for this window. An event handler is an object
that is capable of processing the events sent to a window. By default,
the window is its own event handler, but an application may wish to
substitute another, for example to allow central implementation of
event-handling for a variety of different window classes.
It is usually better to use wx.Window.PushEventHandler since this sets
up a chain of event handlers, where an event not handled by one event
handler is handed to the next one in the chain.
- SetExtraStyle(*args, **kwargs)
- SetExtraStyle(long exStyle)
Sets the extra style bits for the window. Extra styles are the less
often used style bits which can't be set with the constructor or with
SetWindowStyleFlag()
- SetFocus(*args, **kwargs)
- SetFocus()
Set's the focus to this window, allowing it to receive keyboard input.
- SetFocusFromKbd(*args, **kwargs)
- SetFocusFromKbd()
Set focus to this window as the result of a keyboard action. Normally
only called internally.
- SetFont(*args, **kwargs)
- SetFont(Font font) -> bool
Sets the font for this window.
- SetForegroundColour(*args, **kwargs)
- SetForegroundColour(Colour colour) -> bool
Sets the foreground colour of the window. Returns True is the colour
was changed. The interpretation of foreground colour is dependent on
the window class; it may be the text colour or other colour, or it may
not be used at all.
- SetHelpText(*args, **kwargs)
- SetHelpText(String text)
Sets the help text to be used as context-sensitive help for this
window. Note that the text is actually stored by the current
wxHelpProvider implementation, and not in the window object itself.
- SetHelpTextForId(*args, **kwargs)
- SetHelpTextForId(String text)
Associate this help text with all windows with the same id as this
one.
- SetId(*args, **kwargs)
- SetId(int winid)
Sets the identifier of the window. Each window has an integer
identifier. If the application has not provided one, an identifier
will be generated. Normally, the identifier should be provided on
creation and should not be modified subsequently.
- SetLabel(*args, **kwargs)
- SetLabel(String label)
Set the text which the window shows in its label if applicable.
- SetName(*args, **kwargs)
- SetName(String name)
Sets the window's name. The window name is used for ressource
setting in X, it is not the same as the window title/label
- SetPosition = Move(*args, **kwargs)
- Move(Point pt, int flags=SIZE_USE_EXISTING)
Moves the window to the given position.
- SetRect(*args, **kwargs)
- SetRect(Rect rect, int sizeFlags=SIZE_AUTO)
Sets the position and size of the window in pixels using a wx.Rect.
- SetScrollPos(*args, **kwargs)
- SetScrollPos(int orientation, int pos, bool refresh=True)
Sets the position of one of the built-in scrollbars.
- SetScrollbar(*args, **kwargs)
- SetScrollbar(int orientation, int pos, int thumbvisible, int range,
bool refresh=True)
Sets the scrollbar properties of a built-in scrollbar.
orientation: Determines the scrollbar whose page size is to be
set. May be wx.HORIZONTAL or wx.VERTICAL.
position: The position of the scrollbar in scroll units.
thumbSize: The size of the thumb, or visible portion of the
scrollbar, in scroll units.
range: The maximum position of the scrollbar.
refresh: True to redraw the scrollbar, false otherwise.
- SetSize(*args, **kwargs)
- SetSize(Size size)
Sets the size of the window in pixels.
- SetSizeHints(*args, **kwargs)
- SetSizeHints(int minW, int minH, int maxW=-1, int maxH=-1, int incW=-1,
int incH=-1)
Allows specification of minimum and maximum window sizes, and window
size increments. If a pair of values is not set (or set to -1), the
default values will be used. If this function is called, the user
will not be able to size the window outside the given bounds. The
resizing increments are only significant under Motif or Xt.
- SetSizeWH(*args, **kwargs)
- SetSizeWH(int width, int height)
Sets the size of the window in pixels.
- SetSizer(*args, **kwargs)
- SetSizer(Sizer sizer, bool deleteOld=True)
Sets the window to have the given layout sizer. The window will then
own the object, and will take care of its deletion. If an existing
layout sizer object is already owned by the window, it will be deleted
if the deleteOld parameter is true. Note that this function will also
call SetAutoLayout implicitly with a True parameter if the sizer is
non-NoneL and False otherwise.
- SetSizerAndFit(*args, **kwargs)
- SetSizerAndFit(Sizer sizer, bool deleteOld=True)
The same as SetSizer, except it also sets the size hints for the
window based on the sizer's minimum size.
- SetThemeEnabled(*args, **kwargs)
- SetThemeEnabled(bool enableTheme)
This function tells a window if it should use the system's "theme"
code to draw the windows' background instead if its own background
drawing code. This will only have an effect on platforms that support
the notion of themes in user defined windows. One such platform is
GTK+ where windows can have (very colourful) backgrounds defined by a
user's selected theme.
Dialogs, notebook pages and the status bar have this flag set to true
by default so that the default look and feel is simulated best.
- SetTitle(*args, **kwargs)
- SetTitle(String title)
Sets the window's title. Applicable only to frames and dialogs.
- SetTmpDefaultItem(*args, **kwargs)
- SetTmpDefaultItem(Window win)
Set this child as temporary default
- SetToolTip(*args, **kwargs)
- SetToolTip(ToolTip tip)
Attach a tooltip to the window.
- SetToolTipString(*args, **kwargs)
- SetToolTipString(String tip)
Attach a tooltip to the window.
- SetValidator(*args, **kwargs)
- SetValidator(Validator validator)
Deletes the current validator (if any) and sets the window validator,
having called wx.Validator.Clone to create a new validator of this
type.
- SetVirtualSize(*args, **kwargs)
- SetVirtualSize(Size size)
Set the the virtual size of a window in pixels. For most windows this
is just the client area of the window, but for some like scrolled
windows it is more or less independent of the screen window size.
- SetVirtualSizeHints(*args, **kwargs)
- SetVirtualSizeHints(int minW, int minH, int maxW=-1, int maxH=-1)
Allows specification of minimum and maximum virtual window sizes. If a
pair of values is not set (or set to -1), the default values will be
used. If this function is called, the user will not be able to size
the virtual area of the window outside the given bounds.
- SetVirtualSizeWH(*args, **kwargs)
- SetVirtualSizeWH(int w, int h)
Set the the virtual size of a window in pixels. For most windows this
is just the client area of the window, but for some like scrolled
windows it is more or less independent of the screen window size.
- SetWindowStyle = SetWindowStyleFlag(*args, **kwargs)
- SetWindowStyleFlag(long style)
Sets the style of the window. Please note that some styles cannot be
changed after the window creation and that Refresh() might be called
after changing the others for the change to take place immediately.
- SetWindowStyleFlag(*args, **kwargs)
- SetWindowStyleFlag(long style)
Sets the style of the window. Please note that some styles cannot be
changed after the window creation and that Refresh() might be called
after changing the others for the change to take place immediately.
- SetWindowVariant(*args, **kwargs)
- SetWindowVariant(int variant)
Sets the variant of the window/font size to use for this window,
if the platform supports variants, (for example, wxMac.)
- Show(*args, **kwargs)
- Show(bool show=True) -> bool
Shows or hides the window. You may need to call Raise for a top level
window if you want to bring it to top, although this is not needed if
Show is called immediately after the frame creation. Returns True if
the window has been shown or hidden or False if nothing was done
because it already was in the requested state.
- Thaw(*args, **kwargs)
- Thaw()
Reenables window updating after a previous call to Freeze. Calls to
Freeze/Thaw may be nested, so Thaw must be called the same number of times
that Freeze was before the window will be updated.
- UnregisterHotKey(*args, **kwargs)
- UnregisterHotKey(int hotkeyId) -> bool
Unregisters a system wide hotkey.
- Update(*args, **kwargs)
- Update()
Calling this method immediately repaints the invalidated area of the
window instead of waiting for the EVT_PAINT event to happen, (normally
this would usually only happen when the flow of control returns to the
event loop.) Notice that this function doesn't refresh the window and
does nothing if the window has been already repainted. Use Refresh
first if you want to immediately redraw the window (or some portion of
it) unconditionally.
- UpdateWindowUI(*args, **kwargs)
- UpdateWindowUI(long flags=UPDATE_UI_NONE)
This function sends EVT_UPDATE_UI events to the window. The particular
implementation depends on the window; for example a wx.ToolBar will
send an update UI event for each toolbar button, and a wx.Frame will
send an update UI event for each menubar menu item. You can call this
function from your application to ensure that your UI is up-to-date at
a particular point in time (as far as your EVT_UPDATE_UI handlers are
concerned). This may be necessary if you have called
wx.UpdateUIEvent.SetMode or wx.UpdateUIEvent.SetUpdateInterval to
limit the overhead that wxWindows incurs by sending update UI events
in idle time.
The flags should be a bitlist of one or more of the following values:
wx.UPDATE_UI_NONE No particular value
wx.UPDATE_UI_RECURSE Call the function for descendants
wx.UPDATE_UI_FROMIDLE Invoked from OnIdle
If you are calling this function from an OnIdle function, make sure
you pass the wx.UPDATE_UI_FROMIDLE flag, since this tells the window to
only update the UI elements that need to be updated in idle time. Some
windows update their elements only when necessary, for example when a
menu is about to be shown. The following is an example of how to call
UpdateWindowUI from an idle function.
def OnIdle(self, evt):
if wx.UpdateUIEvent.CanUpdate(self):
UpdateWindowUI(wx.UPDATE_UI_FROMIDLE);
- WarpPointer(*args, **kwargs)
- WarpPointer(int x, int y)
Moves the pointer to the given position on the window.
NOTE: This function is not supported under Mac because Apple Human
Interface Guidelines forbid moving the mouse cursor programmatically.
Static methods inherited from Window:
- FindFocus(*args, **kwargs)
- FindFocus() -> Window
Returns the window or control that currently has the keyboard focus,
or None.
- GetCapture(*args, **kwargs)
- GetCapture() -> Window
Returns the window which currently captures the mouse or None
- NewControlId(*args, **kwargs)
- NewControlId() -> int
Generate a control id for the controls which were not given one.
- NextControlId(*args, **kwargs)
- NextControlId(int winid) -> int
Get the id of the control following the one with the given
(autogenerated) id
- PrevControlId(*args, **kwargs)
- PrevControlId(int winid) -> int
Get the id of the control preceding the one with the given
(autogenerated) id
Methods inherited from EvtHandler:
- AddPendingEvent(*args, **kwargs)
- AddPendingEvent(Event event)
- Bind(self, event, handler, source=None, id=-1, id2=-1)
- Bind an event to an event handler.
event One of the EVT_* objects that specifies the
type of event to bind,
handler A callable object to be invoked when the event
is delivered to self. Pass None to disconnect an
event handler.
source Sometimes the event originates from a different window
than self, but you still want to catch it in self. (For
example, a button event delivered to a frame.) By
passing the source of the event, the event handling
system is able to differentiate between the same event
type from different controls.
id,id2 Used for menu IDs or for event types that require a
range of IDs
- Connect(*args, **kwargs)
- Connect(int id, int lastId, int eventType, PyObject func)
- Disconnect(*args, **kwargs)
- Disconnect(int id, int lastId=-1, wxEventType eventType=wxEVT_NULL) -> bool
- GetEvtHandlerEnabled(*args, **kwargs)
- GetEvtHandlerEnabled() -> bool
- GetNextHandler(*args, **kwargs)
- GetNextHandler() -> EvtHandler
- GetPreviousHandler(*args, **kwargs)
- GetPreviousHandler() -> EvtHandler
- ProcessEvent(*args, **kwargs)
- ProcessEvent(Event event) -> bool
- ProcessPendingEvents(*args, **kwargs)
- ProcessPendingEvents()
- SetEvtHandlerEnabled(*args, **kwargs)
- SetEvtHandlerEnabled(bool enabled)
- SetNextHandler(*args, **kwargs)
- SetNextHandler(EvtHandler handler)
- SetPreviousHandler(*args, **kwargs)
- SetPreviousHandler(EvtHandler handler)
Methods inherited from Object:
- GetClassName(*args, **kwargs)
- GetClassName() -> String
Returns the class name of the C++ object using wxRTTI.
Data and other attributes inherited from Object:
- __dict__ = <dictproxy object at 0x01D96490>
- dictionary for instance variables (if defined)
- __weakref__ = <attribute '__weakref__' of 'Object' objects>
- list of weak references to the object (if defined)
|
class DBSpecifierWizard(Wizard) |
|
Wizard to specifying a database connection |
|
- Method resolution order:
- DBSpecifierWizard
- Wizard
- Dialog
- TopLevelWindow
- Window
- EvtHandler
- Object
- object
Methods defined here:
- __init__(self, parent, id=-1, title='Database Connection Wizard', bitmap=None, pos=wx.Point(-1, -1), value=None)
- Initialize the specifier wizard
bitmap -- wxBitmap to use, otherwise uses the default
from wxoo.resources.dbsetup_png
value -- a dbspecifier instance to edit, or None, in
which case we create a new specifier.
Methods inherited from Wizard:
- Create(*args, **kwargs)
- Create(Window parent, int id=-1, String title=EmptyString,
Bitmap bitmap=wxNullBitmap, Point pos=DefaultPosition) -> bool
- FitToPage(*args, **kwargs)
- FitToPage(WizardPage firstPage)
- GetCurrentPage(*args, **kwargs)
- GetCurrentPage() -> WizardPage
- GetPageAreaSizer(*args, **kwargs)
- GetPageAreaSizer() -> Sizer
- GetPageSize(*args, **kwargs)
- GetPageSize() -> Size
- HasNextPage(*args, **kwargs)
- HasNextPage(WizardPage page) -> bool
- HasPrevPage(*args, **kwargs)
- HasPrevPage(WizardPage page) -> bool
- Init(*args, **kwargs)
- Init()
- IsRunning(*args, **kwargs)
- IsRunning() -> bool
- RunWizard(*args, **kwargs)
- RunWizard(WizardPage firstPage) -> bool
- SetBorder(*args, **kwargs)
- SetBorder(int border)
- SetPageSize(*args, **kwargs)
- SetPageSize(Size size)
- ShowPage(*args, **kwargs)
- ShowPage(WizardPage page, bool goingForward=True) -> bool
- __repr__(self)
Methods inherited from Dialog:
- CreateButtonSizer(*args, **kwargs)
- CreateButtonSizer(long flags) -> Sizer
- CreateTextSizer(*args, **kwargs)
- CreateTextSizer(String message) -> Sizer
- EndModal(*args, **kwargs)
- EndModal(int retCode)
- GetReturnCode(*args, **kwargs)
- GetReturnCode() -> int
- IsModal(*args, **kwargs)
- IsModal() -> bool
- IsModalShowing(*args, **kwargs)
- IsModalShowing() -> bool
- SetReturnCode(*args, **kwargs)
- SetReturnCode(int returnCode)
- ShowModal(*args, **kwargs)
- ShowModal() -> int
Methods inherited from TopLevelWindow:
- GetIcon(*args, **kwargs)
- GetIcon() -> Icon
- GetTitle(*args, **kwargs)
- GetTitle() -> String
Gets the window's title. Applicable only to frames and dialogs.
- Iconize(*args, **kwargs)
- Iconize(bool iconize=True)
- IsFullScreen(*args, **kwargs)
- IsFullScreen() -> bool
- IsIconized(*args, **kwargs)
- IsIconized() -> bool
- IsMaximized(*args, **kwargs)
- IsMaximized() -> bool
- Maximize(*args, **kwargs)
- Maximize(bool maximize=True)
- Restore(*args, **kwargs)
- Restore()
- SetIcon(*args, **kwargs)
- SetIcon(Icon icon)
- SetIcons(*args, **kwargs)
- SetIcons(wxIconBundle icons)
- SetShape(*args, **kwargs)
- SetShape(Region region) -> bool
- SetTitle(*args, **kwargs)
- SetTitle(String title)
Sets the window's title. Applicable only to frames and dialogs.
- ShowFullScreen(*args, **kwargs)
- ShowFullScreen(bool show, long style=FULLSCREEN_ALL) -> bool
Methods inherited from Window:
- AcceptsFocus(*args, **kwargs)
- AcceptsFocus() -> bool
Can this window have focus?
- AcceptsFocusFromKeyboard(*args, **kwargs)
- AcceptsFocusFromKeyboard() -> bool
Can this window be given focus by keyboard navigation? if not, the
only way to give it focus (provided it accepts it at all) is to click
it.
- AddChild(*args, **kwargs)
- AddChild(Window child)
Adds a child window. This is called automatically by window creation
functions so should not be required by the application programmer.
- CaptureMouse(*args, **kwargs)
- CaptureMouse()
Directs all mouse input to this window. Call wx.Window.ReleaseMouse to
release the capture.
Note that wxWindows maintains the stack of windows having captured the
mouse and when the mouse is released the capture returns to the window
which had had captured it previously and it is only really released if
there were no previous window. In particular, this means that you must
release the mouse as many times as you capture it.
- Center(*args, **kwargs)
- Center(int direction=BOTH)
Centers the window. The parameter specifies the direction for
cetering, and may be wx.HORIZONTAL, wx.VERTICAL or wx.BOTH. It may
also include wx.CENTER_ON_SCREEN flag if you want to center the window
on the entire screen and not on its parent window. If it is a
top-level window and has no parent then it will always be centered
relative to the screen.
- CenterOnParent(*args, **kwargs)
- CenterOnParent(int dir=BOTH)
Center with respect to the the parent window
- CenterOnScreen(*args, **kwargs)
- CenterOnScreen(int dir=BOTH)
Center on screen (only works for top level windows)
- Centre = Center(*args, **kwargs)
- Center(int direction=BOTH)
Centers the window. The parameter specifies the direction for
cetering, and may be wx.HORIZONTAL, wx.VERTICAL or wx.BOTH. It may
also include wx.CENTER_ON_SCREEN flag if you want to center the window
on the entire screen and not on its parent window. If it is a
top-level window and has no parent then it will always be centered
relative to the screen.
- CentreOnParent = CenterOnParent(*args, **kwargs)
- CenterOnParent(int dir=BOTH)
Center with respect to the the parent window
- CentreOnScreen = CenterOnScreen(*args, **kwargs)
- CenterOnScreen(int dir=BOTH)
Center on screen (only works for top level windows)
- ClearBackground(*args, **kwargs)
- ClearBackground()
Clears the window by filling it with the current background
colour. Does not cause an erase background event to be generated.
- ClientToScreen(*args, **kwargs)
- ClientToScreen(Point pt) -> Point
Converts to screen coordinates from coordinates relative to this window.
- ClientToScreenXY(*args, **kwargs)
- ClientToScreenXY(int x, int y) -> (x,y)
Converts to screen coordinates from coordinates relative to this window.
- Close(*args, **kwargs)
- Close(bool force=False) -> bool
This function simply generates a EVT_CLOSE event whose handler usually
tries to close the window. It doesn't close the window itself,
however. If force is False (the default) then the window's close
handler will be allowed to veto the destruction of the window.
Usually Close is only used with the top level windows (wx.Frame and
wx.Dialog classes) as the others are not supposed to have any special
EVT_CLOSE logic.
The close handler should check whether the window is being deleted
forcibly, using wx.CloseEvent.GetForce, in which case it should
destroy the window using wx.Window.Destroy.
Note that calling Close does not guarantee that the window will be
destroyed; but it provides a way to simulate a manual close of a
window, which may or may not be implemented by destroying the
window. The default EVT_CLOSE handler for wx.Dialog does not
necessarily delete the dialog, since it will simply simulate an
wxID_CANCEL event which is handled by the appropriate button event
handler and may do anything at all.
To guarantee that the window will be destroyed, call wx.Window.Destroy
instead.
- ConvertDialogPointToPixels(*args, **kwargs)
- ConvertDialogPointToPixels(Point pt) -> Point
Converts a point or size from dialog units to pixels. Dialog units
are used for maintaining a dialog's proportions even if the font
changes. For the x dimension, the dialog units are multiplied by the
average character width and then divided by 4. For the y dimension,
the dialog units are multiplied by the average character height and
then divided by 8.
- ConvertDialogSizeToPixels(*args, **kwargs)
- ConvertDialogSizeToPixels(Size sz) -> Size
Converts a point or size from dialog units to pixels. Dialog units
are used for maintaining a dialog's proportions even if the font
changes. For the x dimension, the dialog units are multiplied by the
average character width and then divided by 4. For the y dimension,
the dialog units are multiplied by the average character height and
then divided by 8.
- ConvertPixelPointToDialog(*args, **kwargs)
- ConvertPixelPointToDialog(Point pt) -> Point
- ConvertPixelSizeToDialog(*args, **kwargs)
- ConvertPixelSizeToDialog(Size sz) -> Size
- DLG_PNT(*args, **kwargs)
- DLG_PNT(Point pt) -> Point
Converts a point or size from dialog units to pixels. Dialog units
are used for maintaining a dialog's proportions even if the font
changes. For the x dimension, the dialog units are multiplied by the
average character width and then divided by 4. For the y dimension,
the dialog units are multiplied by the average character height and
then divided by 8.
- DLG_SZE(*args, **kwargs)
- DLG_SZE(Size sz) -> Size
Converts a point or size from dialog units to pixels. Dialog units
are used for maintaining a dialog's proportions even if the font
changes. For the x dimension, the dialog units are multiplied by the
average character width and then divided by 4. For the y dimension,
the dialog units are multiplied by the average character height and
then divided by 8.
- Destroy(*args, **kwargs)
- Destroy() -> bool
Destroys the window safely. Frames and dialogs are not destroyed
immediately when this function is called -- they are added to a list
of windows to be deleted on idle time, when all the window's events
have been processed. This prevents problems with events being sent to
non-existent windows.
Returns True if the window has either been successfully deleted, or it
has been added to the list of windows pending real deletion.
- DestroyChildren(*args, **kwargs)
- DestroyChildren() -> bool
Destroys all children of a window. Called automatically by the destructor.
- Disable(*args, **kwargs)
- Disable() -> bool
Disables the window, same as Enable(false).
- DragAcceptFiles(*args, **kwargs)
- DragAcceptFiles(bool accept)
Enables or disables eligibility for drop file events, EVT_DROP_FILES.
Only available on Windows.
- Enable(*args, **kwargs)
- Enable(bool enable=True) -> bool
Enable or disable the window for user input. Note that when a parent
window is disabled, all of its children are disabled as well and they
are reenabled again when the parent is. Returns true if the window
has been enabled or disabled, false if nothing was done, i.e. if the
window had already been in the specified state.
- FindWindowById(*args, **kwargs)
- FindWindowById(long winid) -> Window
Find a chld of this window by window ID
- FindWindowByName(*args, **kwargs)
- FindWindowByName(String name) -> Window
Find a child of this window by name
- Fit(*args, **kwargs)
- Fit()
Sizes the window so that it fits around its subwindows. This function
won't do anything if there are no subwindows and will only really work
correctly if sizers are used for the subwindows layout. Also, if the
window has exactly one subwindow it is better (faster and the result
is more precise as Fit adds some margin to account for fuzziness of
its calculations) to call window.SetClientSize(child.GetSize())
instead of calling Fit.
- FitInside(*args, **kwargs)
- FitInside()
Similar to Fit, but sizes the interior (virtual) size of a
window. Mainly useful with scrolled windows to reset scrollbars after
sizing changes that do not trigger a size event, and/or scrolled
windows without an interior sizer. This function similarly won't do
anything if there are no subwindows.
- Freeze(*args, **kwargs)
- Freeze()
Freezes the window or, in other words, prevents any updates from taking place
on screen, the window is not redrawn at all. Thaw must be called to reenable
window redrawing. Calls to Freeze/Thaw may be nested, with the actual Thaw
being delayed until all the nesting has been undone.
This method is useful for visual appearance optimization (for example,
it is a good idea to use it before inserting large amount of text into
a wxTextCtrl under wxGTK) but is not implemented on all platforms nor
for all controls so it is mostly just a hint to wxWindows and not a
mandatory directive.
- GetAcceleratorTable(*args, **kwargs)
- GetAcceleratorTable() -> AcceleratorTable
Gets the accelerator table for this window.
- GetAdjustedBestSize(*args, **kwargs)
- GetAdjustedBestSize() -> Size
This method is similar to GetBestSize, except in one
thing. GetBestSize should return the minimum untruncated size of the
window, while this method will return the largest of BestSize and any
user specified minimum size. ie. it is the minimum size the window
should currently be drawn at, not the minimal size it can possibly
tolerate.
- GetAutoLayout(*args, **kwargs)
- GetAutoLayout() -> bool
Returns the current autoLayout setting
- GetBackgroundColour(*args, **kwargs)
- GetBackgroundColour() -> Colour
Returns the background colour of the window.
- GetBestSize(*args, **kwargs)
- GetBestSize() -> Size
This functions returns the best acceptable minimal size for the
window, if applicable. For example, for a static text control, it will be
the minimal size such that the control label is not truncated. For
windows containing subwindows (suzh aswx.Panel), the size returned
by this function will be the same as the size the window would have
had after calling Fit.
- GetBestSizeTuple(*args, **kwargs)
- GetBestSizeTuple() -> (width, height)
This functions returns the best acceptable minimal size for the
window, if applicable. For example, for a static text control, it will be
the minimal size such that the control label is not truncated. For
windows containing subwindows (suzh aswx.Panel), the size returned
by this function will be the same as the size the window would have
had after calling Fit.
- GetBestVirtualSize(*args, **kwargs)
- GetBestVirtualSize() -> Size
Return the largest of ClientSize and BestSize (as determined by a
sizer, interior children, or other means)
- GetBorder(*args)
- GetBorder(long flags) -> int
GetBorder() -> int
Get border for the flags of this window
- GetCaret(*args, **kwargs)
- GetCaret() -> Caret
Returns the caret associated with the window.
- GetCharHeight(*args, **kwargs)
- GetCharHeight() -> int
Get the (average) character size for the current font.
- GetCharWidth(*args, **kwargs)
- GetCharWidth() -> int
Get the (average) character size for the current font.
- GetChildren(*args, **kwargs)
- GetChildren() -> PyObject
Returns a list of the window's children. NOTE: Currently this is a
copy of the child window list maintained by the window, so the return
value of this function is only valid as long as the window's children
do not change.
- GetClientAreaOrigin(*args, **kwargs)
- GetClientAreaOrigin() -> Point
Get the origin of the client area of the window relative to the
window's top left corner (the client area may be shifted because of
the borders, scrollbars, other decorations...)
- GetClientRect(*args, **kwargs)
- GetClientRect() -> Rect
Get the client area position and size as a wx.Rect object.
- GetClientSize(*args, **kwargs)
- GetClientSize() -> Size
This gets the size of the window's 'client area' in pixels. The client
area is the area which may be drawn on by the programmer, excluding
title bar, border, scrollbars, etc.
- GetClientSizeTuple(*args, **kwargs)
- GetClientSizeTuple() -> (width, height)
This gets the size of the window's 'client area' in pixels. The client
area is the area which may be drawn on by the programmer, excluding
title bar, border, scrollbars, etc.
- GetConstraints(*args, **kwargs)
- GetConstraints() -> LayoutConstraints
Returns a pointer to the window's layout constraints, or None if there
are none.
- GetContainingSizer(*args, **kwargs)
- GetContainingSizer() -> Sizer
Return the sizer that this window is a member of, if any, otherwise None.
- GetCursor(*args, **kwargs)
- GetCursor() -> Cursor
Return the cursor associated with this window.
- GetDefaultItem(*args, **kwargs)
- GetDefaultItem() -> Window
Get the default child of this parent, i.e. the one which is activated
by pressing <Enter> such as the OK button on a wx.Dialog.
- GetDropTarget(*args, **kwargs)
- GetDropTarget() -> DropTarget
Returns the associated drop target, which may be None.
- GetEventHandler(*args, **kwargs)
- GetEventHandler() -> EvtHandler
Returns the event handler for this window. By default, the window is
its own event handler.
- GetExtraStyle(*args, **kwargs)
- GetExtraStyle() -> long
Returns the extra style bits for the window.
- GetFont(*args, **kwargs)
- GetFont() -> Font
Returns the default font used for this window.
- GetForegroundColour(*args, **kwargs)
- GetForegroundColour() -> Colour
Returns the foreground colour of the window. The interpretation of
foreground colour is dependent on the window class; it may be the text
colour or other colour, or it may not be used at all.
- GetFullTextExtent(*args, **kwargs)
- GetFullTextExtent(String string, Font font=None) ->
(width, height, descent, externalLeading)
Get the width, height, decent and leading of the text using the
current or specified font.
- GetGrandParent(*args, **kwargs)
- GetGrandParent() -> Window
Returns the parent of the parent of this window, or None if there isn't one.
- GetHandle(*args, **kwargs)
- GetHandle() -> long
Returns the platform-specific handle (as a long integer) of the
physical window. Currently on wxMac it returns the handle of the
toplevel parent of the window.
- GetHelpText(*args, **kwargs)
- GetHelpText() -> String
Gets the help text to be used as context-sensitive help for this
window. Note that the text is actually stored by the current
wxHelpProvider implementation, and not in the window object itself.
- GetId(*args, **kwargs)
- GetId() -> int
Returns the identifier of the window. Each window has an integer
identifier. If the application has not provided one (or the default Id
-1 is used) then an unique identifier with a negative value will be
generated.
- GetLabel(*args, **kwargs)
- GetLabel() -> String
Generic way of getting a label from any window, for
identification purposes. The interpretation of this function
differs from class to class. For frames and dialogs, the value
returned is the title. For buttons or static text controls, it is
the button text. This function can be useful for meta-programs
(such as testing tools or special-needs access programs) which
need to identify windows by name.
- GetMaxHeight(*args, **kwargs)
- GetMaxHeight() -> int
- GetMaxSize(*args, **kwargs)
- GetMaxSize() -> Size
- GetMaxWidth(*args, **kwargs)
- GetMaxWidth() -> int
- GetMinHeight(*args, **kwargs)
- GetMinHeight() -> int
- GetMinWidth(*args, **kwargs)
- GetMinWidth() -> int
- GetName(*args, **kwargs)
- GetName() -> String
Returns the window's name. This name is not guaranteed to be
unique; it is up to the programmer to supply an appropriate name
in the window constructor or via wx.Window.SetName.
- GetParent(*args, **kwargs)
- GetParent() -> Window
Returns the parent window of this window, or None if there isn't one.
- GetPosition(*args, **kwargs)
- GetPosition() -> Point
Get the window's position.
- GetPositionTuple(*args, **kwargs)
- GetPositionTuple() -> (x,y)
Get the window's position.
- GetRect(*args, **kwargs)
- GetRect() -> Rect
Returns the size and position of the window as a wx.Rect object.
- GetScrollPos(*args, **kwargs)
- GetScrollPos(int orientation) -> int
Returns the built-in scrollbar position.
- GetScrollRange(*args, **kwargs)
- GetScrollRange(int orientation) -> int
Returns the built-in scrollbar range.
- GetScrollThumb(*args, **kwargs)
- GetScrollThumb(int orientation) -> int
Returns the built-in scrollbar thumb size.
- GetSize(*args, **kwargs)
- GetSize() -> Size
Get the window size.
- GetSizeTuple(*args, **kwargs)
- GetSizeTuple() -> (width, height)
Get the window size.
- GetSizer(*args, **kwargs)
- GetSizer() -> Sizer
Return the sizer associated with the window by a previous call to
SetSizer or None if there isn't one.
- GetTextExtent(*args, **kwargs)
- GetTextExtent(String string) -> (width, height)
Get the width and height of the text using the current font.
- GetThemeEnabled(*args, **kwargs)
- GetThemeEnabled() -> bool
Return the themeEnabled flag.
- GetToolTip(*args, **kwargs)
- GetToolTip() -> ToolTip
get the associated tooltip or None if none
- GetUpdateClientRect(*args, **kwargs)
- GetUpdateClientRect() -> Rect
Get the update rectangle region bounding box in client coords.
- GetUpdateRegion(*args, **kwargs)
- GetUpdateRegion() -> Region
Returns the region specifying which parts of the window have been
damaged. Should only be called within an EVT_PAINT handler.
- GetValidator(*args, **kwargs)
- GetValidator() -> Validator
Returns a pointer to the current validator for the window, or None if
there is none.
- GetVirtualSize(*args, **kwargs)
- GetVirtualSize() -> Size
Get the the virtual size of the window in pixels. For most windows
this is just the client area of the window, but for some like scrolled
windows it is more or less independent of the screen window size.
- GetVirtualSizeTuple(*args, **kwargs)
- GetVirtualSizeTuple() -> (width, height)
Get the the virtual size of the window in pixels. For most windows
this is just the client area of the window, but for some like scrolled
windows it is more or less independent of the screen window size.
- GetWindowStyle = GetWindowStyleFlag(*args, **kwargs)
- GetWindowStyleFlag() -> long
Gets the window style that was passed to the constructor or Create
method.
- GetWindowStyleFlag(*args, **kwargs)
- GetWindowStyleFlag() -> long
Gets the window style that was passed to the constructor or Create
method.
- GetWindowVariant(*args, **kwargs)
- GetWindowVariant() -> int
- HasCapture(*args, **kwargs)
- HasCapture() -> bool
Returns true if this window has the current mouse capture.
- HasFlag(*args, **kwargs)
- HasFlag(int flag) -> bool
Test if the given style is set for this window.
- HasScrollbar(*args, **kwargs)
- HasScrollbar(int orient) -> bool
Does the window have the scrollbar for this orientation?
- Hide(*args, **kwargs)
- Hide() -> bool
Equivalent to calling Show(False).
- HitTest(*args, **kwargs)
- HitTest(Point pt) -> int
Test where the given (in client coords) point lies
- HitTestXY(*args, **kwargs)
- HitTestXY(int x, int y) -> int
Test where the given (in client coords) point lies
- IsBeingDeleted(*args, **kwargs)
- IsBeingDeleted() -> bool
Is the window in the process of being deleted?
- IsEnabled(*args, **kwargs)
- IsEnabled() -> bool
Returns true if the window is enabled for input, false otherwise.
- IsExposed(*args, **kwargs)
- IsExposed(int x, int y, int w=1, int h=1) -> bool
Returns true if the given point or rectangle area has been exposed
since the last repaint. Call this in an paint event handler to
optimize redrawing by only redrawing those areas, which have been
exposed.
- IsExposedPoint(*args, **kwargs)
- IsExposedPoint(Point pt) -> bool
Returns true if the given point or rectangle area has been exposed
since the last repaint. Call this in an paint event handler to
optimize redrawing by only redrawing those areas, which have been
exposed.
- IsExposedRect(*args, **kwargs)
- IsExposedRect(Rect rect) -> bool
Returns true if the given point or rectangle area has been exposed
since the last repaint. Call this in an paint event handler to
optimize redrawing by only redrawing those areas, which have been
exposed.
- IsRetained(*args, **kwargs)
- IsRetained() -> bool
Returns true if the window is retained, false otherwise. Retained
windows are only available on X platforms.
- IsShown(*args, **kwargs)
- IsShown() -> bool
Returns true if the window is shown, false if it has been hidden.
- IsTopLevel(*args, **kwargs)
- IsTopLevel() -> bool
Returns true if the given window is a top-level one. Currently all
frames and dialogs are always considered to be top-level windows (even
if they have a parent window).
- Layout(*args, **kwargs)
- Layout() -> bool
Invokes the constraint-based layout algorithm or the sizer-based
algorithm for this window. See SetAutoLayout: when auto layout is on,
this function gets called automatically by the default EVT_SIZE
handler when the window is resized.
- LineDown(*args, **kwargs)
- LineDown() -> bool
This is just a wrapper for ScrollLines(1).
- LineUp(*args, **kwargs)
- LineUp() -> bool
This is just a wrapper for ScrollLines(-1).
- Lower(*args, **kwargs)
- Lower()
Lowers the window to the bottom of the window hierarchy if it is a
managed window (dialog or frame).
- MakeModal(*args, **kwargs)
- MakeModal(bool modal=True)
Disables all other windows in the application so that the user can
only interact with this window. Passing False will reverse this
effect.
- Move(*args, **kwargs)
- Move(Point pt, int flags=SIZE_USE_EXISTING)
Moves the window to the given position.
- MoveXY(*args, **kwargs)
- MoveXY(int x, int y, int flags=SIZE_USE_EXISTING)
Moves the window to the given position.
- OnPaint(*args, **kwargs)
- OnPaint(PaintEvent event)
- PageDown(*args, **kwargs)
- PageDown() -> bool
This is just a wrapper for ScrollPages(1).
- PageUp(*args, **kwargs)
- PageUp() -> bool
This is just a wrapper for ScrollPages(-1).
- PopEventHandler(*args, **kwargs)
- PopEventHandler(bool deleteHandler=False) -> EvtHandler
Removes and returns the top-most event handler on the event handler
stack. If deleteHandler is True then the wx.EvtHandler object will be
destroyed after it is popped.
- PopupMenu(*args, **kwargs)
- PopupMenu(Menu menu, Point pos) -> bool
Pops up the given menu at the specified coordinates, relative to this
window, and returns control when the user has dismissed the menu. If a
menu item is selected, the corresponding menu event is generated and
will be processed as usual.
- PopupMenuXY(*args, **kwargs)
- PopupMenuXY(Menu menu, int x, int y) -> bool
Pops up the given menu at the specified coordinates, relative to this
window, and returns control when the user has dismissed the menu. If a
menu item is selected, the corresponding menu event is generated and
will be processed as usual.
- PostCreate(self, pre)
- Phase 3 of the 2-phase create <wink!>
Call this method after precreating the window with the 2-phase create method.
- PrepareDC(*args, **kwargs)
- PrepareDC(DC dc)
Call this function to prepare the device context for drawing a
scrolled image. It sets the device origin according to the current
scroll position.
- PushEventHandler(*args, **kwargs)
- PushEventHandler(EvtHandler handler)
Pushes this event handler onto the event handler stack for the window.
An event handler is an object that is capable of processing the events
sent to a window. By default, the window is its own event handler, but
an application may wish to substitute another, for example to allow
central implementation of event-handling for a variety of different
window classes.
wx.Window.PushEventHandler allows an application to set up a chain of
event handlers, where an event not handled by one event handler is
handed to the next one in the chain. Use wx.Window.PopEventHandler to
remove the event handler.
- Raise(*args, **kwargs)
- Raise()
Raises the window to the top of the window hierarchy if it is a
managed window (dialog or frame).
- Refresh(*args, **kwargs)
- Refresh(bool eraseBackground=True, Rect rect=None)
Mark the specified rectangle (or the whole window) as "dirty" so it
will be repainted. Causes an EVT_PAINT event to be generated and sent
to the window.
- RefreshRect(*args, **kwargs)
- RefreshRect(Rect rect)
Redraws the contents of the given rectangle: the area inside it will
be repainted. This is the same as Refresh but has a nicer syntax.
- RegisterHotKey(*args, **kwargs)
- RegisterHotKey(int hotkeyId, int modifiers, int keycode) -> bool
Registers a system wide hotkey. Every time the user presses the hotkey
registered here, this window will receive a hotkey event. It will
receive the event even if the application is in the background and
does not have the input focus because the user is working with some
other application. To bind an event handler function to this hotkey
use EVT_HOTKEY with an id equal to hotkeyId. Returns True if the
hotkey was registered successfully.
- ReleaseMouse(*args, **kwargs)
- ReleaseMouse()
Releases mouse input captured with wx.Window.CaptureMouse.
- RemoveChild(*args, **kwargs)
- RemoveChild(Window child)
Removes a child window. This is called automatically by window
deletion functions so should not be required by the application
programmer.
- RemoveEventHandler(*args, **kwargs)
- RemoveEventHandler(EvtHandler handler) -> bool
Find the given handler in the event handler chain and remove (but
not delete) it from the event handler chain, return True if it was
found and False otherwise (this also results in an assert failure so
this function should only be called when the handler is supposed to
be there.)
- Reparent(*args, **kwargs)
- Reparent(Window newParent) -> bool
Reparents the window, i.e the window will be removed from its current
parent window (e.g. a non-standard toolbar in a wxFrame) and then
re-inserted into another. Available on Windows and GTK. Returns True
if the parent was changed, False otherwise (error or newParent ==
oldParent)
- ScreenToClient(*args, **kwargs)
- ScreenToClient(Point pt) -> Point
Converts from screen to client window coordinates.
- ScreenToClientXY(*args, **kwargs)
- ScreenToClientXY(int x, int y) -> (x,y)
Converts from screen to client window coordinates.
- ScrollLines(*args, **kwargs)
- ScrollLines(int lines) -> bool
If the platform and window class supports it, scrolls the window by
the given number of lines down, if lines is positive, or up if lines
is negative. Returns True if the window was scrolled, False if it was
already on top/bottom and nothing was done.
- ScrollPages(*args, **kwargs)
- ScrollPages(int pages) -> bool
If the platform and window class supports it, scrolls the window by
the given number of pages down, if pages is positive, or up if pages
is negative. Returns True if the window was scrolled, False if it was
already on top/bottom and nothing was done.
- ScrollWindow(*args, **kwargs)
- ScrollWindow(int dx, int dy, Rect rect=None)
Physically scrolls the pixels in the window and move child windows
accordingly. Use this function to optimise your scrolling
implementations, to minimise the area that must be redrawn. Note that
it is rarely required to call this function from a user program.
dx: Amount to scroll horizontally.
dy: Amount to scroll vertically.
rect: Rectangle to invalidate. If this is None, the whole window
is invalidated. If you pass a rectangle corresponding to the
area of the window exposed by the scroll, your painting
handler can optimize painting by checking for the
invalidated region.
- SetAcceleratorTable(*args, **kwargs)
- SetAcceleratorTable(AcceleratorTable accel)
Sets the accelerator table for this window.
- SetAutoLayout(*args, **kwargs)
- SetAutoLayout(bool autoLayout)
Determines whether the Layout function will be called automatically
when the window is resized. It is called implicitly by SetSizer but
if you use SetConstraints you should call it manually or otherwise the
window layout won't be correctly updated when its size changes.
- SetBackgroundColour(*args, **kwargs)
- SetBackgroundColour(Colour colour) -> bool
Sets the background colour of the window. Returns True if the colour
was changed. The background colour is usually painted by the default
EVT_ERASE_BACKGROUND event handler function under Windows and
automatically under GTK.
Note that setting the background colour does not cause an immediate
refresh, so you may wish to call ClearBackground or Refresh after
calling this function.
Use this function with care under GTK+ as the new appearance of the
window might not look equally well when used with themes, i.e GTK+'s
ability to change its look as the user wishes with run-time loadable
modules.
- SetCaret(*args, **kwargs)
- SetCaret(Caret caret)
Sets the caret associated with the window.
- SetClientRect(*args, **kwargs)
- SetClientRect(Rect rect)
This sets the size of the window client area in pixels. Using this
function to size a window tends to be more device-independent than
wx.Window.SetSize, since the application need not worry about what
dimensions the border or title bar have when trying to fit the window
around panel items, for example.
- SetClientSize(*args, **kwargs)
- SetClientSize(Size size)
This sets the size of the window client area in pixels. Using this
function to size a window tends to be more device-independent than
wx.Window.SetSize, since the application need not worry about what
dimensions the border or title bar have when trying to fit the window
around panel items, for example.
- SetClientSizeWH(*args, **kwargs)
- SetClientSizeWH(int width, int height)
This sets the size of the window client area in pixels. Using this
function to size a window tends to be more device-independent than
wx.Window.SetSize, since the application need not worry about what
dimensions the border or title bar have when trying to fit the window
around panel items, for example.
- SetConstraints(*args, **kwargs)
- SetConstraints(LayoutConstraints constraints)
Sets the window to have the given layout constraints. If an existing
layout constraints object is already owned by the window, it will be
deleted. Pass None to disassociate and delete the window's current
constraints.
You must call SetAutoLayout to tell a window to use the constraints
automatically in its default EVT_SIZE handler; otherwise, you must
handle EVT_SIZE yourself and call Layout() explicitly. When setting
both a wx.LayoutConstraints and a wx.Sizer, only the sizer will have
effect.
- SetContainingSizer(*args, **kwargs)
- SetContainingSizer(Sizer sizer)
This normally does not need to be called by application code. It is
called internally when a window is added to a sizer, and is used so
the window can remove itself from the sizer when it is destroyed.
- SetCursor(*args, **kwargs)
- SetCursor(Cursor cursor) -> bool
Sets the window's cursor. Notice that the window cursor also sets it
for the children of the window implicitly.
The cursor may be wx.NullCursor in which case the window cursor will
be reset back to default.
- SetDefaultItem(*args, **kwargs)
- SetDefaultItem(Window child) -> Window
Set this child as default, return the old default.
- SetDimensions(*args, **kwargs)
- SetDimensions(int x, int y, int width, int height, int sizeFlags=SIZE_AUTO)
Sets the position and size of the window in pixels. The sizeFlags
parameter indicates the interpretation of the other params if they are
-1. wx.SIZE_AUTO*: a -1 indicates that a class-specific default
shoudl be used. wx.SIZE_USE_EXISTING: existing dimensions should be
used if -1 values are supplied. wxSIZE_ALLOW_MINUS_ONE: allow
dimensions of -1 and less to be interpreted as real dimensions, not
default values.
- SetDropTarget(*args, **kwargs)
- SetDropTarget(DropTarget dropTarget)
Associates a drop target with this window. If the window already has
a drop target, it is deleted.
- SetEventHandler(*args, **kwargs)
- SetEventHandler(EvtHandler handler)
Sets the event handler for this window. An event handler is an object
that is capable of processing the events sent to a window. By default,
the window is its own event handler, but an application may wish to
substitute another, for example to allow central implementation of
event-handling for a variety of different window classes.
It is usually better to use wx.Window.PushEventHandler since this sets
up a chain of event handlers, where an event not handled by one event
handler is handed to the next one in the chain.
- SetExtraStyle(*args, **kwargs)
- SetExtraStyle(long exStyle)
Sets the extra style bits for the window. Extra styles are the less
often used style bits which can't be set with the constructor or with
SetWindowStyleFlag()
- SetFocus(*args, **kwargs)
- SetFocus()
Set's the focus to this window, allowing it to receive keyboard input.
- SetFocusFromKbd(*args, **kwargs)
- SetFocusFromKbd()
Set focus to this window as the result of a keyboard action. Normally
only called internally.
- SetFont(*args, **kwargs)
- SetFont(Font font) -> bool
Sets the font for this window.
- SetForegroundColour(*args, **kwargs)
- SetForegroundColour(Colour colour) -> bool
Sets the foreground colour of the window. Returns True is the colour
was changed. The interpretation of foreground colour is dependent on
the window class; it may be the text colour or other colour, or it may
not be used at all.
- SetHelpText(*args, **kwargs)
- SetHelpText(String text)
Sets the help text to be used as context-sensitive help for this
window. Note that the text is actually stored by the current
wxHelpProvider implementation, and not in the window object itself.
- SetHelpTextForId(*args, **kwargs)
- SetHelpTextForId(String text)
Associate this help text with all windows with the same id as this
one.
- SetId(*args, **kwargs)
- SetId(int winid)
Sets the identifier of the window. Each window has an integer
identifier. If the application has not provided one, an identifier
will be generated. Normally, the identifier should be provided on
creation and should not be modified subsequently.
- SetLabel(*args, **kwargs)
- SetLabel(String label)
Set the text which the window shows in its label if applicable.
- SetName(*args, **kwargs)
- SetName(String name)
Sets the window's name. The window name is used for ressource
setting in X, it is not the same as the window title/label
- SetPosition = Move(*args, **kwargs)
- Move(Point pt, int flags=SIZE_USE_EXISTING)
Moves the window to the given position.
- SetRect(*args, **kwargs)
- SetRect(Rect rect, int sizeFlags=SIZE_AUTO)
Sets the position and size of the window in pixels using a wx.Rect.
- SetScrollPos(*args, **kwargs)
- SetScrollPos(int orientation, int pos, bool refresh=True)
Sets the position of one of the built-in scrollbars.
- SetScrollbar(*args, **kwargs)
- SetScrollbar(int orientation, int pos, int thumbvisible, int range,
bool refresh=True)
Sets the scrollbar properties of a built-in scrollbar.
orientation: Determines the scrollbar whose page size is to be
set. May be wx.HORIZONTAL or wx.VERTICAL.
position: The position of the scrollbar in scroll units.
thumbSize: The size of the thumb, or visible portion of the
scrollbar, in scroll units.
range: The maximum position of the scrollbar.
refresh: True to redraw the scrollbar, false otherwise.
- SetSize(*args, **kwargs)
- SetSize(Size size)
Sets the size of the window in pixels.
- SetSizeHints(*args, **kwargs)
- SetSizeHints(int minW, int minH, int maxW=-1, int maxH=-1, int incW=-1,
int incH=-1)
Allows specification of minimum and maximum window sizes, and window
size increments. If a pair of values is not set (or set to -1), the
default values will be used. If this function is called, the user
will not be able to size the window outside the given bounds. The
resizing increments are only significant under Motif or Xt.
- SetSizeWH(*args, **kwargs)
- SetSizeWH(int width, int height)
Sets the size of the window in pixels.
- SetSizer(*args, **kwargs)
- SetSizer(Sizer sizer, bool deleteOld=True)
Sets the window to have the given layout sizer. The window will then
own the object, and will take care of its deletion. If an existing
layout sizer object is already owned by the window, it will be deleted
if the deleteOld parameter is true. Note that this function will also
call SetAutoLayout implicitly with a True parameter if the sizer is
non-NoneL and False otherwise.
- SetSizerAndFit(*args, **kwargs)
- SetSizerAndFit(Sizer sizer, bool deleteOld=True)
The same as SetSizer, except it also sets the size hints for the
window based on the sizer's minimum size.
- SetThemeEnabled(*args, **kwargs)
- SetThemeEnabled(bool enableTheme)
This function tells a window if it should use the system's "theme"
code to draw the windows' background instead if its own background
drawing code. This will only have an effect on platforms that support
the notion of themes in user defined windows. One such platform is
GTK+ where windows can have (very colourful) backgrounds defined by a
user's selected theme.
Dialogs, notebook pages and the status bar have this flag set to true
by default so that the default look and feel is simulated best.
- SetTmpDefaultItem(*args, **kwargs)
- SetTmpDefaultItem(Window win)
Set this child as temporary default
- SetToolTip(*args, **kwargs)
- SetToolTip(ToolTip tip)
Attach a tooltip to the window.
- SetToolTipString(*args, **kwargs)
- SetToolTipString(String tip)
Attach a tooltip to the window.
- SetValidator(*args, **kwargs)
- SetValidator(Validator validator)
Deletes the current validator (if any) and sets the window validator,
having called wx.Validator.Clone to create a new validator of this
type.
- SetVirtualSize(*args, **kwargs)
- SetVirtualSize(Size size)
Set the the virtual size of a window in pixels. For most windows this
is just the client area of the window, but for some like scrolled
windows it is more or less independent of the screen window size.
- SetVirtualSizeHints(*args, **kwargs)
- SetVirtualSizeHints(int minW, int minH, int maxW=-1, int maxH=-1)
Allows specification of minimum and maximum virtual window sizes. If a
pair of values is not set (or set to -1), the default values will be
used. If this function is called, the user will not be able to size
the virtual area of the window outside the given bounds.
- SetVirtualSizeWH(*args, **kwargs)
- SetVirtualSizeWH(int w, int h)
Set the the virtual size of a window in pixels. For most windows this
is just the client area of the window, but for some like scrolled
windows it is more or less independent of the screen window size.
- SetWindowStyle = SetWindowStyleFlag(*args, **kwargs)
- SetWindowStyleFlag(long style)
Sets the style of the window. Please note that some styles cannot be
changed after the window creation and that Refresh() might be called
after changing the others for the change to take place immediately.
- SetWindowStyleFlag(*args, **kwargs)
- SetWindowStyleFlag(long style)
Sets the style of the window. Please note that some styles cannot be
changed after the window creation and that Refresh() might be called
after changing the others for the change to take place immediately.
- SetWindowVariant(*args, **kwargs)
- SetWindowVariant(int variant)
Sets the variant of the window/font size to use for this window,
if the platform supports variants, (for example, wxMac.)
- Show(*args, **kwargs)
- Show(bool show=True) -> bool
Shows or hides the window. You may need to call Raise for a top level
window if you want to bring it to top, although this is not needed if
Show is called immediately after the frame creation. Returns True if
the window has been shown or hidden or False if nothing was done
because it already was in the requested state.
- Thaw(*args, **kwargs)
- Thaw()
Reenables window updating after a previous call to Freeze. Calls to
Freeze/Thaw may be nested, so Thaw must be called the same number of times
that Freeze was before the window will be updated.
- UnregisterHotKey(*args, **kwargs)
- UnregisterHotKey(int hotkeyId) -> bool
Unregisters a system wide hotkey.
- Update(*args, **kwargs)
- Update()
Calling this method immediately repaints the invalidated area of the
window instead of waiting for the EVT_PAINT event to happen, (normally
this would usually only happen when the flow of control returns to the
event loop.) Notice that this function doesn't refresh the window and
does nothing if the window has been already repainted. Use Refresh
first if you want to immediately redraw the window (or some portion of
it) unconditionally.
- UpdateWindowUI(*args, **kwargs)
- UpdateWindowUI(long flags=UPDATE_UI_NONE)
This function sends EVT_UPDATE_UI events to the window. The particular
implementation depends on the window; for example a wx.ToolBar will
send an update UI event for each toolbar button, and a wx.Frame will
send an update UI event for each menubar menu item. You can call this
function from your application to ensure that your UI is up-to-date at
a particular point in time (as far as your EVT_UPDATE_UI handlers are
concerned). This may be necessary if you have called
wx.UpdateUIEvent.SetMode or wx.UpdateUIEvent.SetUpdateInterval to
limit the overhead that wxWindows incurs by sending update UI events
in idle time.
The flags should be a bitlist of one or more of the following values:
wx.UPDATE_UI_NONE No particular value
wx.UPDATE_UI_RECURSE Call the function for descendants
wx.UPDATE_UI_FROMIDLE Invoked from OnIdle
If you are calling this function from an OnIdle function, make sure
you pass the wx.UPDATE_UI_FROMIDLE flag, since this tells the window to
only update the UI elements that need to be updated in idle time. Some
windows update their elements only when necessary, for example when a
menu is about to be shown. The following is an example of how to call
UpdateWindowUI from an idle function.
def OnIdle(self, evt):
if wx.UpdateUIEvent.CanUpdate(self):
UpdateWindowUI(wx.UPDATE_UI_FROMIDLE);
- WarpPointer(*args, **kwargs)
- WarpPointer(int x, int y)
Moves the pointer to the given position on the window.
NOTE: This function is not supported under Mac because Apple Human
Interface Guidelines forbid moving the mouse cursor programmatically.
Static methods inherited from Window:
- FindFocus(*args, **kwargs)
- FindFocus() -> Window
Returns the window or control that currently has the keyboard focus,
or None.
- GetCapture(*args, **kwargs)
- GetCapture() -> Window
Returns the window which currently captures the mouse or None
- NewControlId(*args, **kwargs)
- NewControlId() -> int
Generate a control id for the controls which were not given one.
- NextControlId(*args, **kwargs)
- NextControlId(int winid) -> int
Get the id of the control following the one with the given
(autogenerated) id
- PrevControlId(*args, **kwargs)
- PrevControlId(int winid) -> int
Get the id of the control preceding the one with the given
(autogenerated) id
Methods inherited from EvtHandler:
- AddPendingEvent(*args, **kwargs)
- AddPendingEvent(Event event)
- Bind(self, event, handler, source=None, id=-1, id2=-1)
- Bind an event to an event handler.
event One of the EVT_* objects that specifies the
type of event to bind,
handler A callable object to be invoked when the event
is delivered to self. Pass None to disconnect an
event handler.
source Sometimes the event originates from a different window
than self, but you still want to catch it in self. (For
example, a button event delivered to a frame.) By
passing the source of the event, the event handling
system is able to differentiate between the same event
type from different controls.
id,id2 Used for menu IDs or for event types that require a
range of IDs
- Connect(*args, **kwargs)
- Connect(int id, int lastId, int eventType, PyObject func)
- Disconnect(*args, **kwargs)
- Disconnect(int id, int lastId=-1, wxEventType eventType=wxEVT_NULL) -> bool
- GetEvtHandlerEnabled(*args, **kwargs)
- GetEvtHandlerEnabled() -> bool
- GetNextHandler(*args, **kwargs)
- GetNextHandler() -> EvtHandler
- GetPreviousHandler(*args, **kwargs)
- GetPreviousHandler() -> EvtHandler
- ProcessEvent(*args, **kwargs)
- ProcessEvent(Event event) -> bool
- ProcessPendingEvents(*args, **kwargs)
- ProcessPendingEvents()
- SetEvtHandlerEnabled(*args, **kwargs)
- SetEvtHandlerEnabled(bool enabled)
- SetNextHandler(*args, **kwargs)
- SetNextHandler(EvtHandler handler)
- SetPreviousHandler(*args, **kwargs)
- SetPreviousHandler(EvtHandler handler)
Methods inherited from Object:
- GetClassName(*args, **kwargs)
- GetClassName() -> String
Returns the class name of the C++ object using wxRTTI.
Data and other attributes inherited from Object:
- __dict__ = <dictproxy object at 0x01DF3770>
- dictionary for instance variables (if defined)
- __weakref__ = <attribute '__weakref__' of 'Object' objects>
- list of weak references to the object (if defined)
|
class DatabaseSetupPage(BasePage) |
|
Setup of database-specific specifier properties
Basically, within a particular driver, this
page will allow you to specify the particular
database to which to connect, and potentially how
to perform that connection (for instance read-only). |
|
- Method resolution order:
- DatabaseSetupPage
- BasePage
- PyWizardPage
- WizardPage
- Panel
- Window
- EvtHandler
- Object
- object
Methods inherited from BasePage:
- CreateControls(self, style=0)
- Create the controls for the Window
- GetNext(self)
- Retrieve the next window in the series
- GetPrev(self)
- Retrieve the previous window in the series
- SetNext(self, nextWindow)
- Set the next window in the chain of Windows
- SetPrev(self, previousWindow)
- Set the previous window in the chain of Windows
- __init__(self, parent, bitmap=None, resource=None, value=None, title='Choose Database Driver')
- Initialize the BasePage object
- __repr__(self)
Data and other attributes inherited from BasePage:
- message = ''
- next = None
- previous = None
Methods inherited from PyWizardPage:
- Create(*args, **kwargs)
- Create(Wizard parent, Bitmap bitmap=wxNullBitmap, String resource=EmptyString) -> bool
- base_AcceptsFocus(*args, **kwargs)
- base_AcceptsFocus() -> bool
- base_AcceptsFocusFromKeyboard(*args, **kwargs)
- base_AcceptsFocusFromKeyboard() -> bool
- base_AddChild(*args, **kwargs)
- base_AddChild(Window child)
- base_DoGetBestSize(*args, **kwargs)
- base_DoGetBestSize() -> Size
- base_DoGetClientSize(*args, **kwargs)
- base_DoGetClientSize() -> (width, height)
- base_DoGetPosition(*args, **kwargs)
- base_DoGetPosition() -> (x,y)
- base_DoGetSize(*args, **kwargs)
- base_DoGetSize() -> (width, height)
- base_DoGetVirtualSize(*args, **kwargs)
- base_DoGetVirtualSize() -> Size
- base_DoMoveWindow(*args, **kwargs)
- base_DoMoveWindow(int x, int y, int width, int height)
- base_DoSetClientSize(*args, **kwargs)
- base_DoSetClientSize(int width, int height)
- base_DoSetSize(*args, **kwargs)
- base_DoSetSize(int x, int y, int width, int height, int sizeFlags=SIZE_AUTO)
- base_DoSetVirtualSize(*args, **kwargs)
- base_DoSetVirtualSize(int x, int y)
- base_GetMaxSize(*args, **kwargs)
- base_GetMaxSize() -> Size
- base_InitDialog(*args, **kwargs)
- base_InitDialog()
- base_RemoveChild(*args, **kwargs)
- base_RemoveChild(Window child)
- base_TransferDataFromWindow(*args, **kwargs)
- base_TransferDataFromWindow() -> bool
- base_TransferDataToWindow(*args, **kwargs)
- base_TransferDataToWindow() -> bool
- base_Validate(*args, **kwargs)
- base_Validate() -> bool
Methods inherited from WizardPage:
- GetBitmap(*args, **kwargs)
- GetBitmap() -> Bitmap
Methods inherited from Panel:
- InitDialog(*args, **kwargs)
- InitDialog()
Methods inherited from Window:
- AcceptsFocus(*args, **kwargs)
- AcceptsFocus() -> bool
Can this window have focus?
- AcceptsFocusFromKeyboard(*args, **kwargs)
- AcceptsFocusFromKeyboard() -> bool
Can this window be given focus by keyboard navigation? if not, the
only way to give it focus (provided it accepts it at all) is to click
it.
- AddChild(*args, **kwargs)
- AddChild(Window child)
Adds a child window. This is called automatically by window creation
functions so should not be required by the application programmer.
- CaptureMouse(*args, **kwargs)
- CaptureMouse()
Directs all mouse input to this window. Call wx.Window.ReleaseMouse to
release the capture.
Note that wxWindows maintains the stack of windows having captured the
mouse and when the mouse is released the capture returns to the window
which had had captured it previously and it is only really released if
there were no previous window. In particular, this means that you must
release the mouse as many times as you capture it.
- Center(*args, **kwargs)
- Center(int direction=BOTH)
Centers the window. The parameter specifies the direction for
cetering, and may be wx.HORIZONTAL, wx.VERTICAL or wx.BOTH. It may
also include wx.CENTER_ON_SCREEN flag if you want to center the window
on the entire screen and not on its parent window. If it is a
top-level window and has no parent then it will always be centered
relative to the screen.
- CenterOnParent(*args, **kwargs)
- CenterOnParent(int dir=BOTH)
Center with respect to the the parent window
- CenterOnScreen(*args, **kwargs)
- CenterOnScreen(int dir=BOTH)
Center on screen (only works for top level windows)
- Centre = Center(*args, **kwargs)
- Center(int direction=BOTH)
Centers the window. The parameter specifies the direction for
cetering, and may be wx.HORIZONTAL, wx.VERTICAL or wx.BOTH. It may
also include wx.CENTER_ON_SCREEN flag if you want to center the window
on the entire screen and not on its parent window. If it is a
top-level window and has no parent then it will always be centered
relative to the screen.
- CentreOnParent = CenterOnParent(*args, **kwargs)
- CenterOnParent(int dir=BOTH)
Center with respect to the the parent window
- CentreOnScreen = CenterOnScreen(*args, **kwargs)
- CenterOnScreen(int dir=BOTH)
Center on screen (only works for top level windows)
- ClearBackground(*args, **kwargs)
- ClearBackground()
Clears the window by filling it with the current background
colour. Does not cause an erase background event to be generated.
- ClientToScreen(*args, **kwargs)
- ClientToScreen(Point pt) -> Point
Converts to screen coordinates from coordinates relative to this window.
- ClientToScreenXY(*args, **kwargs)
- ClientToScreenXY(int x, int y) -> (x,y)
Converts to screen coordinates from coordinates relative to this window.
- Close(*args, **kwargs)
- Close(bool force=False) -> bool
This function simply generates a EVT_CLOSE event whose handler usually
tries to close the window. It doesn't close the window itself,
however. If force is False (the default) then the window's close
handler will be allowed to veto the destruction of the window.
Usually Close is only used with the top level windows (wx.Frame and
wx.Dialog classes) as the others are not supposed to have any special
EVT_CLOSE logic.
The close handler should check whether the window is being deleted
forcibly, using wx.CloseEvent.GetForce, in which case it should
destroy the window using wx.Window.Destroy.
Note that calling Close does not guarantee that the window will be
destroyed; but it provides a way to simulate a manual close of a
window, which may or may not be implemented by destroying the
window. The default EVT_CLOSE handler for wx.Dialog does not
necessarily delete the dialog, since it will simply simulate an
wxID_CANCEL event which is handled by the appropriate button event
handler and may do anything at all.
To guarantee that the window will be destroyed, call wx.Window.Destroy
instead.
- ConvertDialogPointToPixels(*args, **kwargs)
- ConvertDialogPointToPixels(Point pt) -> Point
Converts a point or size from dialog units to pixels. Dialog units
are used for maintaining a dialog's proportions even if the font
changes. For the x dimension, the dialog units are multiplied by the
average character width and then divided by 4. For the y dimension,
the dialog units are multiplied by the average character height and
then divided by 8.
- ConvertDialogSizeToPixels(*args, **kwargs)
- ConvertDialogSizeToPixels(Size sz) -> Size
Converts a point or size from dialog units to pixels. Dialog units
are used for maintaining a dialog's proportions even if the font
changes. For the x dimension, the dialog units are multiplied by the
average character width and then divided by 4. For the y dimension,
the dialog units are multiplied by the average character height and
then divided by 8.
- ConvertPixelPointToDialog(*args, **kwargs)
- ConvertPixelPointToDialog(Point pt) -> Point
- ConvertPixelSizeToDialog(*args, **kwargs)
- ConvertPixelSizeToDialog(Size sz) -> Size
- DLG_PNT(*args, **kwargs)
- DLG_PNT(Point pt) -> Point
Converts a point or size from dialog units to pixels. Dialog units
are used for maintaining a dialog's proportions even if the font
changes. For the x dimension, the dialog units are multiplied by the
average character width and then divided by 4. For the y dimension,
the dialog units are multiplied by the average character height and
then divided by 8.
- DLG_SZE(*args, **kwargs)
- DLG_SZE(Size sz) -> Size
Converts a point or size from dialog units to pixels. Dialog units
are used for maintaining a dialog's proportions even if the font
changes. For the x dimension, the dialog units are multiplied by the
average character width and then divided by 4. For the y dimension,
the dialog units are multiplied by the average character height and
then divided by 8.
- Destroy(*args, **kwargs)
- Destroy() -> bool
Destroys the window safely. Frames and dialogs are not destroyed
immediately when this function is called -- they are added to a list
of windows to be deleted on idle time, when all the window's events
have been processed. This prevents problems with events being sent to
non-existent windows.
Returns True if the window has either been successfully deleted, or it
has been added to the list of windows pending real deletion.
- DestroyChildren(*args, **kwargs)
- DestroyChildren() -> bool
Destroys all children of a window. Called automatically by the destructor.
- Disable(*args, **kwargs)
- Disable() -> bool
Disables the window, same as Enable(false).
- DragAcceptFiles(*args, **kwargs)
- DragAcceptFiles(bool accept)
Enables or disables eligibility for drop file events, EVT_DROP_FILES.
Only available on Windows.
- Enable(*args, **kwargs)
- Enable(bool enable=True) -> bool
Enable or disable the window for user input. Note that when a parent
window is disabled, all of its children are disabled as well and they
are reenabled again when the parent is. Returns true if the window
has been enabled or disabled, false if nothing was done, i.e. if the
window had already been in the specified state.
- FindWindowById(*args, **kwargs)
- FindWindowById(long winid) -> Window
Find a chld of this window by window ID
- FindWindowByName(*args, **kwargs)
- FindWindowByName(String name) -> Window
Find a child of this window by name
- Fit(*args, **kwargs)
- Fit()
Sizes the window so that it fits around its subwindows. This function
won't do anything if there are no subwindows and will only really work
correctly if sizers are used for the subwindows layout. Also, if the
window has exactly one subwindow it is better (faster and the result
is more precise as Fit adds some margin to account for fuzziness of
its calculations) to call window.SetClientSize(child.GetSize())
instead of calling Fit.
- FitInside(*args, **kwargs)
- FitInside()
Similar to Fit, but sizes the interior (virtual) size of a
window. Mainly useful with scrolled windows to reset scrollbars after
sizing changes that do not trigger a size event, and/or scrolled
windows without an interior sizer. This function similarly won't do
anything if there are no subwindows.
- Freeze(*args, **kwargs)
- Freeze()
Freezes the window or, in other words, prevents any updates from taking place
on screen, the window is not redrawn at all. Thaw must be called to reenable
window redrawing. Calls to Freeze/Thaw may be nested, with the actual Thaw
being delayed until all the nesting has been undone.
This method is useful for visual appearance optimization (for example,
it is a good idea to use it before inserting large amount of text into
a wxTextCtrl under wxGTK) but is not implemented on all platforms nor
for all controls so it is mostly just a hint to wxWindows and not a
mandatory directive.
- GetAcceleratorTable(*args, **kwargs)
- GetAcceleratorTable() -> AcceleratorTable
Gets the accelerator table for this window.
- GetAdjustedBestSize(*args, **kwargs)
- GetAdjustedBestSize() -> Size
This method is similar to GetBestSize, except in one
thing. GetBestSize should return the minimum untruncated size of the
window, while this method will return the largest of BestSize and any
user specified minimum size. ie. it is the minimum size the window
should currently be drawn at, not the minimal size it can possibly
tolerate.
- GetAutoLayout(*args, **kwargs)
- GetAutoLayout() -> bool
Returns the current autoLayout setting
- GetBackgroundColour(*args, **kwargs)
- GetBackgroundColour() -> Colour
Returns the background colour of the window.
- GetBestSize(*args, **kwargs)
- GetBestSize() -> Size
This functions returns the best acceptable minimal size for the
window, if applicable. For example, for a static text control, it will be
the minimal size such that the control label is not truncated. For
windows containing subwindows (suzh aswx.Panel), the size returned
by this function will be the same as the size the window would have
had after calling Fit.
- GetBestSizeTuple(*args, **kwargs)
- GetBestSizeTuple() -> (width, height)
This functions returns the best acceptable minimal size for the
window, if applicable. For example, for a static text control, it will be
the minimal size such that the control label is not truncated. For
windows containing subwindows (suzh aswx.Panel), the size returned
by this function will be the same as the size the window would have
had after calling Fit.
- GetBestVirtualSize(*args, **kwargs)
- GetBestVirtualSize() -> Size
Return the largest of ClientSize and BestSize (as determined by a
sizer, interior children, or other means)
- GetBorder(*args)
- GetBorder(long flags) -> int
GetBorder() -> int
Get border for the flags of this window
- GetCaret(*args, **kwargs)
- GetCaret() -> Caret
Returns the caret associated with the window.
- GetCharHeight(*args, **kwargs)
- GetCharHeight() -> int
Get the (average) character size for the current font.
- GetCharWidth(*args, **kwargs)
- GetCharWidth() -> int
Get the (average) character size for the current font.
- GetChildren(*args, **kwargs)
- GetChildren() -> PyObject
Returns a list of the window's children. NOTE: Currently this is a
copy of the child window list maintained by the window, so the return
value of this function is only valid as long as the window's children
do not change.
- GetClientAreaOrigin(*args, **kwargs)
- GetClientAreaOrigin() -> Point
Get the origin of the client area of the window relative to the
window's top left corner (the client area may be shifted because of
the borders, scrollbars, other decorations...)
- GetClientRect(*args, **kwargs)
- GetClientRect() -> Rect
Get the client area position and size as a wx.Rect object.
- GetClientSize(*args, **kwargs)
- GetClientSize() -> Size
This gets the size of the window's 'client area' in pixels. The client
area is the area which may be drawn on by the programmer, excluding
title bar, border, scrollbars, etc.
- GetClientSizeTuple(*args, **kwargs)
- GetClientSizeTuple() -> (width, height)
This gets the size of the window's 'client area' in pixels. The client
area is the area which may be drawn on by the programmer, excluding
title bar, border, scrollbars, etc.
- GetConstraints(*args, **kwargs)
- GetConstraints() -> LayoutConstraints
Returns a pointer to the window's layout constraints, or None if there
are none.
- GetContainingSizer(*args, **kwargs)
- GetContainingSizer() -> Sizer
Return the sizer that this window is a member of, if any, otherwise None.
- GetCursor(*args, **kwargs)
- GetCursor() -> Cursor
Return the cursor associated with this window.
- GetDefaultItem(*args, **kwargs)
- GetDefaultItem() -> Window
Get the default child of this parent, i.e. the one which is activated
by pressing <Enter> such as the OK button on a wx.Dialog.
- GetDropTarget(*args, **kwargs)
- GetDropTarget() -> DropTarget
Returns the associated drop target, which may be None.
- GetEventHandler(*args, **kwargs)
- GetEventHandler() -> EvtHandler
Returns the event handler for this window. By default, the window is
its own event handler.
- GetExtraStyle(*args, **kwargs)
- GetExtraStyle() -> long
Returns the extra style bits for the window.
- GetFont(*args, **kwargs)
- GetFont() -> Font
Returns the default font used for this window.
- GetForegroundColour(*args, **kwargs)
- GetForegroundColour() -> Colour
Returns the foreground colour of the window. The interpretation of
foreground colour is dependent on the window class; it may be the text
colour or other colour, or it may not be used at all.
- GetFullTextExtent(*args, **kwargs)
- GetFullTextExtent(String string, Font font=None) ->
(width, height, descent, externalLeading)
Get the width, height, decent and leading of the text using the
current or specified font.
- GetGrandParent(*args, **kwargs)
- GetGrandParent() -> Window
Returns the parent of the parent of this window, or None if there isn't one.
- GetHandle(*args, **kwargs)
- GetHandle() -> long
Returns the platform-specific handle (as a long integer) of the
physical window. Currently on wxMac it returns the handle of the
toplevel parent of the window.
- GetHelpText(*args, **kwargs)
- GetHelpText() -> String
Gets the help text to be used as context-sensitive help for this
window. Note that the text is actually stored by the current
wxHelpProvider implementation, and not in the window object itself.
- GetId(*args, **kwargs)
- GetId() -> int
Returns the identifier of the window. Each window has an integer
identifier. If the application has not provided one (or the default Id
-1 is used) then an unique identifier with a negative value will be
generated.
- GetLabel(*args, **kwargs)
- GetLabel() -> String
Generic way of getting a label from any window, for
identification purposes. The interpretation of this function
differs from class to class. For frames and dialogs, the value
returned is the title. For buttons or static text controls, it is
the button text. This function can be useful for meta-programs
(such as testing tools or special-needs access programs) which
need to identify windows by name.
- GetMaxHeight(*args, **kwargs)
- GetMaxHeight() -> int
- GetMaxSize(*args, **kwargs)
- GetMaxSize() -> Size
- GetMaxWidth(*args, **kwargs)
- GetMaxWidth() -> int
- GetMinHeight(*args, **kwargs)
- GetMinHeight() -> int
- GetMinWidth(*args, **kwargs)
- GetMinWidth() -> int
- GetName(*args, **kwargs)
- GetName() -> String
Returns the window's name. This name is not guaranteed to be
unique; it is up to the programmer to supply an appropriate name
in the window constructor or via wx.Window.SetName.
- GetParent(*args, **kwargs)
- GetParent() -> Window
Returns the parent window of this window, or None if there isn't one.
- GetPosition(*args, **kwargs)
- GetPosition() -> Point
Get the window's position.
- GetPositionTuple(*args, **kwargs)
- GetPositionTuple() -> (x,y)
Get the window's position.
- GetRect(*args, **kwargs)
- GetRect() -> Rect
Returns the size and position of the window as a wx.Rect object.
- GetScrollPos(*args, **kwargs)
- GetScrollPos(int orientation) -> int
Returns the built-in scrollbar position.
- GetScrollRange(*args, **kwargs)
- GetScrollRange(int orientation) -> int
Returns the built-in scrollbar range.
- GetScrollThumb(*args, **kwargs)
- GetScrollThumb(int orientation) -> int
Returns the built-in scrollbar thumb size.
- GetSize(*args, **kwargs)
- GetSize() -> Size
Get the window size.
- GetSizeTuple(*args, **kwargs)
- GetSizeTuple() -> (width, height)
Get the window size.
- GetSizer(*args, **kwargs)
- GetSizer() -> Sizer
Return the sizer associated with the window by a previous call to
SetSizer or None if there isn't one.
- GetTextExtent(*args, **kwargs)
- GetTextExtent(String string) -> (width, height)
Get the width and height of the text using the current font.
- GetThemeEnabled(*args, **kwargs)
- GetThemeEnabled() -> bool
Return the themeEnabled flag.
- GetTitle(*args, **kwargs)
- GetTitle() -> String
Gets the window's title. Applicable only to frames and dialogs.
- GetToolTip(*args, **kwargs)
- GetToolTip() -> ToolTip
get the associated tooltip or None if none
- GetUpdateClientRect(*args, **kwargs)
- GetUpdateClientRect() -> Rect
Get the update rectangle region bounding box in client coords.
- GetUpdateRegion(*args, **kwargs)
- GetUpdateRegion() -> Region
Returns the region specifying which parts of the window have been
damaged. Should only be called within an EVT_PAINT handler.
- GetValidator(*args, **kwargs)
- GetValidator() -> Validator
Returns a pointer to the current validator for the window, or None if
there is none.
- GetVirtualSize(*args, **kwargs)
- GetVirtualSize() -> Size
Get the the virtual size of the window in pixels. For most windows
this is just the client area of the window, but for some like scrolled
windows it is more or less independent of the screen window size.
- GetVirtualSizeTuple(*args, **kwargs)
- GetVirtualSizeTuple() -> (width, height)
Get the the virtual size of the window in pixels. For most windows
this is just the client area of the window, but for some like scrolled
windows it is more or less independent of the screen window size.
- GetWindowStyle = GetWindowStyleFlag(*args, **kwargs)
- GetWindowStyleFlag() -> long
Gets the window style that was passed to the constructor or Create
method.
- GetWindowStyleFlag(*args, **kwargs)
- GetWindowStyleFlag() -> long
Gets the window style that was passed to the constructor or Create
method.
- GetWindowVariant(*args, **kwargs)
- GetWindowVariant() -> int
- HasCapture(*args, **kwargs)
- HasCapture() -> bool
Returns true if this window has the current mouse capture.
- HasFlag(*args, **kwargs)
- HasFlag(int flag) -> bool
Test if the given style is set for this window.
- HasScrollbar(*args, **kwargs)
- HasScrollbar(int orient) -> bool
Does the window have the scrollbar for this orientation?
- Hide(*args, **kwargs)
- Hide() -> bool
Equivalent to calling Show(False).
- HitTest(*args, **kwargs)
- HitTest(Point pt) -> int
Test where the given (in client coords) point lies
- HitTestXY(*args, **kwargs)
- HitTestXY(int x, int y) -> int
Test where the given (in client coords) point lies
- IsBeingDeleted(*args, **kwargs)
- IsBeingDeleted() -> bool
Is the window in the process of being deleted?
- IsEnabled(*args, **kwargs)
- IsEnabled() -> bool
Returns true if the window is enabled for input, false otherwise.
- IsExposed(*args, **kwargs)
- IsExposed(int x, int y, int w=1, int h=1) -> bool
Returns true if the given point or rectangle area has been exposed
since the last repaint. Call this in an paint event handler to
optimize redrawing by only redrawing those areas, which have been
exposed.
- IsExposedPoint(*args, **kwargs)
- IsExposedPoint(Point pt) -> bool
Returns true if the given point or rectangle area has been exposed
since the last repaint. Call this in an paint event handler to
optimize redrawing by only redrawing those areas, which have been
exposed.
- IsExposedRect(*args, **kwargs)
- IsExposedRect(Rect rect) -> bool
Returns true if the given point or rectangle area has been exposed
since the last repaint. Call this in an paint event handler to
optimize redrawing by only redrawing those areas, which have been
exposed.
- IsRetained(*args, **kwargs)
- IsRetained() -> bool
Returns true if the window is retained, false otherwise. Retained
windows are only available on X platforms.
- IsShown(*args, **kwargs)
- IsShown() -> bool
Returns true if the window is shown, false if it has been hidden.
- IsTopLevel(*args, **kwargs)
- IsTopLevel() -> bool
Returns true if the given window is a top-level one. Currently all
frames and dialogs are always considered to be top-level windows (even
if they have a parent window).
- Layout(*args, **kwargs)
- Layout() -> bool
Invokes the constraint-based layout algorithm or the sizer-based
algorithm for this window. See SetAutoLayout: when auto layout is on,
this function gets called automatically by the default EVT_SIZE
handler when the window is resized.
- LineDown(*args, **kwargs)
- LineDown() -> bool
This is just a wrapper for ScrollLines(1).
- LineUp(*args, **kwargs)
- LineUp() -> bool
This is just a wrapper for ScrollLines(-1).
- Lower(*args, **kwargs)
- Lower()
Lowers the window to the bottom of the window hierarchy if it is a
managed window (dialog or frame).
- MakeModal(*args, **kwargs)
- MakeModal(bool modal=True)
Disables all other windows in the application so that the user can
only interact with this window. Passing False will reverse this
effect.
- Move(*args, **kwargs)
- Move(Point pt, int flags=SIZE_USE_EXISTING)
Moves the window to the given position.
- MoveXY(*args, **kwargs)
- MoveXY(int x, int y, int flags=SIZE_USE_EXISTING)
Moves the window to the given position.
- OnPaint(*args, **kwargs)
- OnPaint(PaintEvent event)
- PageDown(*args, **kwargs)
- PageDown() -> bool
This is just a wrapper for ScrollPages(1).
- PageUp(*args, **kwargs)
- PageUp() -> bool
This is just a wrapper for ScrollPages(-1).
- PopEventHandler(*args, **kwargs)
- PopEventHandler(bool deleteHandler=False) -> EvtHandler
Removes and returns the top-most event handler on the event handler
stack. If deleteHandler is True then the wx.EvtHandler object will be
destroyed after it is popped.
- PopupMenu(*args, **kwargs)
- PopupMenu(Menu menu, Point pos) -> bool
Pops up the given menu at the specified coordinates, relative to this
window, and returns control when the user has dismissed the menu. If a
menu item is selected, the corresponding menu event is generated and
will be processed as usual.
- PopupMenuXY(*args, **kwargs)
- PopupMenuXY(Menu menu, int x, int y) -> bool
Pops up the given menu at the specified coordinates, relative to this
window, and returns control when the user has dismissed the menu. If a
menu item is selected, the corresponding menu event is generated and
will be processed as usual.
- PostCreate(self, pre)
- Phase 3 of the 2-phase create <wink!>
Call this method after precreating the window with the 2-phase create method.
- PrepareDC(*args, **kwargs)
- PrepareDC(DC dc)
Call this function to prepare the device context for drawing a
scrolled image. It sets the device origin according to the current
scroll position.
- PushEventHandler(*args, **kwargs)
- PushEventHandler(EvtHandler handler)
Pushes this event handler onto the event handler stack for the window.
An event handler is an object that is capable of processing the events
sent to a window. By default, the window is its own event handler, but
an application may wish to substitute another, for example to allow
central implementation of event-handling for a variety of different
window classes.
wx.Window.PushEventHandler allows an application to set up a chain of
event handlers, where an event not handled by one event handler is
handed to the next one in the chain. Use wx.Window.PopEventHandler to
remove the event handler.
- Raise(*args, **kwargs)
- Raise()
Raises the window to the top of the window hierarchy if it is a
managed window (dialog or frame).
- Refresh(*args, **kwargs)
- Refresh(bool eraseBackground=True, Rect rect=None)
Mark the specified rectangle (or the whole window) as "dirty" so it
will be repainted. Causes an EVT_PAINT event to be generated and sent
to the window.
- RefreshRect(*args, **kwargs)
- RefreshRect(Rect rect)
Redraws the contents of the given rectangle: the area inside it will
be repainted. This is the same as Refresh but has a nicer syntax.
- RegisterHotKey(*args, **kwargs)
- RegisterHotKey(int hotkeyId, int modifiers, int keycode) -> bool
Registers a system wide hotkey. Every time the user presses the hotkey
registered here, this window will receive a hotkey event. It will
receive the event even if the application is in the background and
does not have the input focus because the user is working with some
other application. To bind an event handler function to this hotkey
use EVT_HOTKEY with an id equal to hotkeyId. Returns True if the
hotkey was registered successfully.
- ReleaseMouse(*args, **kwargs)
- ReleaseMouse()
Releases mouse input captured with wx.Window.CaptureMouse.
- RemoveChild(*args, **kwargs)
- RemoveChild(Window child)
Removes a child window. This is called automatically by window
deletion functions so should not be required by the application
programmer.
- RemoveEventHandler(*args, **kwargs)
- RemoveEventHandler(EvtHandler handler) -> bool
Find the given handler in the event handler chain and remove (but
not delete) it from the event handler chain, return True if it was
found and False otherwise (this also results in an assert failure so
this function should only be called when the handler is supposed to
be there.)
- Reparent(*args, **kwargs)
- Reparent(Window newParent) -> bool
Reparents the window, i.e the window will be removed from its current
parent window (e.g. a non-standard toolbar in a wxFrame) and then
re-inserted into another. Available on Windows and GTK. Returns True
if the parent was changed, False otherwise (error or newParent ==
oldParent)
- ScreenToClient(*args, **kwargs)
- ScreenToClient(Point pt) -> Point
Converts from screen to client window coordinates.
- ScreenToClientXY(*args, **kwargs)
- ScreenToClientXY(int x, int y) -> (x,y)
Converts from screen to client window coordinates.
- ScrollLines(*args, **kwargs)
- ScrollLines(int lines) -> bool
If the platform and window class supports it, scrolls the window by
the given number of lines down, if lines is positive, or up if lines
is negative. Returns True if the window was scrolled, False if it was
already on top/bottom and nothing was done.
- ScrollPages(*args, **kwargs)
- ScrollPages(int pages) -> bool
If the platform and window class supports it, scrolls the window by
the given number of pages down, if pages is positive, or up if pages
is negative. Returns True if the window was scrolled, False if it was
already on top/bottom and nothing was done.
- ScrollWindow(*args, **kwargs)
- ScrollWindow(int dx, int dy, Rect rect=None)
Physically scrolls the pixels in the window and move child windows
accordingly. Use this function to optimise your scrolling
implementations, to minimise the area that must be redrawn. Note that
it is rarely required to call this function from a user program.
dx: Amount to scroll horizontally.
dy: Amount to scroll vertically.
rect: Rectangle to invalidate. If this is None, the whole window
is invalidated. If you pass a rectangle corresponding to the
area of the window exposed by the scroll, your painting
handler can optimize painting by checking for the
invalidated region.
- SetAcceleratorTable(*args, **kwargs)
- SetAcceleratorTable(AcceleratorTable accel)
Sets the accelerator table for this window.
- SetAutoLayout(*args, **kwargs)
- SetAutoLayout(bool autoLayout)
Determines whether the Layout function will be called automatically
when the window is resized. It is called implicitly by SetSizer but
if you use SetConstraints you should call it manually or otherwise the
window layout won't be correctly updated when its size changes.
- SetBackgroundColour(*args, **kwargs)
- SetBackgroundColour(Colour colour) -> bool
Sets the background colour of the window. Returns True if the colour
was changed. The background colour is usually painted by the default
EVT_ERASE_BACKGROUND event handler function under Windows and
automatically under GTK.
Note that setting the background colour does not cause an immediate
refresh, so you may wish to call ClearBackground or Refresh after
calling this function.
Use this function with care under GTK+ as the new appearance of the
window might not look equally well when used with themes, i.e GTK+'s
ability to change its look as the user wishes with run-time loadable
modules.
- SetCaret(*args, **kwargs)
- SetCaret(Caret caret)
Sets the caret associated with the window.
- SetClientRect(*args, **kwargs)
- SetClientRect(Rect rect)
This sets the size of the window client area in pixels. Using this
function to size a window tends to be more device-independent than
wx.Window.SetSize, since the application need not worry about what
dimensions the border or title bar have when trying to fit the window
around panel items, for example.
- SetClientSize(*args, **kwargs)
- SetClientSize(Size size)
This sets the size of the window client area in pixels. Using this
function to size a window tends to be more device-independent than
wx.Window.SetSize, since the application need not worry about what
dimensions the border or title bar have when trying to fit the window
around panel items, for example.
- SetClientSizeWH(*args, **kwargs)
- SetClientSizeWH(int width, int height)
This sets the size of the window client area in pixels. Using this
function to size a window tends to be more device-independent than
wx.Window.SetSize, since the application need not worry about what
dimensions the border or title bar have when trying to fit the window
around panel items, for example.
- SetConstraints(*args, **kwargs)
- SetConstraints(LayoutConstraints constraints)
Sets the window to have the given layout constraints. If an existing
layout constraints object is already owned by the window, it will be
deleted. Pass None to disassociate and delete the window's current
constraints.
You must call SetAutoLayout to tell a window to use the constraints
automatically in its default EVT_SIZE handler; otherwise, you must
handle EVT_SIZE yourself and call Layout() explicitly. When setting
both a wx.LayoutConstraints and a wx.Sizer, only the sizer will have
effect.
- SetContainingSizer(*args, **kwargs)
- SetContainingSizer(Sizer sizer)
This normally does not need to be called by application code. It is
called internally when a window is added to a sizer, and is used so
the window can remove itself from the sizer when it is destroyed.
- SetCursor(*args, **kwargs)
- SetCursor(Cursor cursor) -> bool
Sets the window's cursor. Notice that the window cursor also sets it
for the children of the window implicitly.
The cursor may be wx.NullCursor in which case the window cursor will
be reset back to default.
- SetDefaultItem(*args, **kwargs)
- SetDefaultItem(Window child) -> Window
Set this child as default, return the old default.
- SetDimensions(*args, **kwargs)
- SetDimensions(int x, int y, int width, int height, int sizeFlags=SIZE_AUTO)
Sets the position and size of the window in pixels. The sizeFlags
parameter indicates the interpretation of the other params if they are
-1. wx.SIZE_AUTO*: a -1 indicates that a class-specific default
shoudl be used. wx.SIZE_USE_EXISTING: existing dimensions should be
used if -1 values are supplied. wxSIZE_ALLOW_MINUS_ONE: allow
dimensions of -1 and less to be interpreted as real dimensions, not
default values.
- SetDropTarget(*args, **kwargs)
- SetDropTarget(DropTarget dropTarget)
Associates a drop target with this window. If the window already has
a drop target, it is deleted.
- SetEventHandler(*args, **kwargs)
- SetEventHandler(EvtHandler handler)
Sets the event handler for this window. An event handler is an object
that is capable of processing the events sent to a window. By default,
the window is its own event handler, but an application may wish to
substitute another, for example to allow central implementation of
event-handling for a variety of different window classes.
It is usually better to use wx.Window.PushEventHandler since this sets
up a chain of event handlers, where an event not handled by one event
handler is handed to the next one in the chain.
- SetExtraStyle(*args, **kwargs)
- SetExtraStyle(long exStyle)
Sets the extra style bits for the window. Extra styles are the less
often used style bits which can't be set with the constructor or with
SetWindowStyleFlag()
- SetFocus(*args, **kwargs)
- SetFocus()
Set's the focus to this window, allowing it to receive keyboard input.
- SetFocusFromKbd(*args, **kwargs)
- SetFocusFromKbd()
Set focus to this window as the result of a keyboard action. Normally
only called internally.
- SetFont(*args, **kwargs)
- SetFont(Font font) -> bool
Sets the font for this window.
- SetForegroundColour(*args, **kwargs)
- SetForegroundColour(Colour colour) -> bool
Sets the foreground colour of the window. Returns True is the colour
was changed. The interpretation of foreground colour is dependent on
the window class; it may be the text colour or other colour, or it may
not be used at all.
- SetHelpText(*args, **kwargs)
- SetHelpText(String text)
Sets the help text to be used as context-sensitive help for this
window. Note that the text is actually stored by the current
wxHelpProvider implementation, and not in the window object itself.
- SetHelpTextForId(*args, **kwargs)
- SetHelpTextForId(String text)
Associate this help text with all windows with the same id as this
one.
- SetId(*args, **kwargs)
- SetId(int winid)
Sets the identifier of the window. Each window has an integer
identifier. If the application has not provided one, an identifier
will be generated. Normally, the identifier should be provided on
creation and should not be modified subsequently.
- SetLabel(*args, **kwargs)
- SetLabel(String label)
Set the text which the window shows in its label if applicable.
- SetName(*args, **kwargs)
- SetName(String name)
Sets the window's name. The window name is used for ressource
setting in X, it is not the same as the window title/label
- SetPosition = Move(*args, **kwargs)
- Move(Point pt, int flags=SIZE_USE_EXISTING)
Moves the window to the given position.
- SetRect(*args, **kwargs)
- SetRect(Rect rect, int sizeFlags=SIZE_AUTO)
Sets the position and size of the window in pixels using a wx.Rect.
- SetScrollPos(*args, **kwargs)
- SetScrollPos(int orientation, int pos, bool refresh=True)
Sets the position of one of the built-in scrollbars.
- SetScrollbar(*args, **kwargs)
- SetScrollbar(int orientation, int pos, int thumbvisible, int range,
bool refresh=True)
Sets the scrollbar properties of a built-in scrollbar.
orientation: Determines the scrollbar whose page size is to be
set. May be wx.HORIZONTAL or wx.VERTICAL.
position: The position of the scrollbar in scroll units.
thumbSize: The size of the thumb, or visible portion of the
scrollbar, in scroll units.
range: The maximum position of the scrollbar.
refresh: True to redraw the scrollbar, false otherwise.
- SetSize(*args, **kwargs)
- SetSize(Size size)
Sets the size of the window in pixels.
- SetSizeHints(*args, **kwargs)
- SetSizeHints(int minW, int minH, int maxW=-1, int maxH=-1, int incW=-1,
int incH=-1)
Allows specification of minimum and maximum window sizes, and window
size increments. If a pair of values is not set (or set to -1), the
default values will be used. If this function is called, the user
will not be able to size the window outside the given bounds. The
resizing increments are only significant under Motif or Xt.
- SetSizeWH(*args, **kwargs)
- SetSizeWH(int width, int height)
Sets the size of the window in pixels.
- SetSizer(*args, **kwargs)
- SetSizer(Sizer sizer, bool deleteOld=True)
Sets the window to have the given layout sizer. The window will then
own the object, and will take care of its deletion. If an existing
layout sizer object is already owned by the window, it will be deleted
if the deleteOld parameter is true. Note that this function will also
call SetAutoLayout implicitly with a True parameter if the sizer is
non-NoneL and False otherwise.
- SetSizerAndFit(*args, **kwargs)
- SetSizerAndFit(Sizer sizer, bool deleteOld=True)
The same as SetSizer, except it also sets the size hints for the
window based on the sizer's minimum size.
- SetThemeEnabled(*args, **kwargs)
- SetThemeEnabled(bool enableTheme)
This function tells a window if it should use the system's "theme"
code to draw the windows' background instead if its own background
drawing code. This will only have an effect on platforms that support
the notion of themes in user defined windows. One such platform is
GTK+ where windows can have (very colourful) backgrounds defined by a
user's selected theme.
Dialogs, notebook pages and the status bar have this flag set to true
by default so that the default look and feel is simulated best.
- SetTitle(*args, **kwargs)
- SetTitle(String title)
Sets the window's title. Applicable only to frames and dialogs.
- SetTmpDefaultItem(*args, **kwargs)
- SetTmpDefaultItem(Window win)
Set this child as temporary default
- SetToolTip(*args, **kwargs)
- SetToolTip(ToolTip tip)
Attach a tooltip to the window.
- SetToolTipString(*args, **kwargs)
- SetToolTipString(String tip)
Attach a tooltip to the window.
- SetValidator(*args, **kwargs)
- SetValidator(Validator validator)
Deletes the current validator (if any) and sets the window validator,
having called wx.Validator.Clone to create a new validator of this
type.
- SetVirtualSize(*args, **kwargs)
- SetVirtualSize(Size size)
Set the the virtual size of a window in pixels. For most windows this
is just the client area of the window, but for some like scrolled
windows it is more or less independent of the screen window size.
- SetVirtualSizeHints(*args, **kwargs)
- SetVirtualSizeHints(int minW, int minH, int maxW=-1, int maxH=-1)
Allows specification of minimum and maximum virtual window sizes. If a
pair of values is not set (or set to -1), the default values will be
used. If this function is called, the user will not be able to size
the virtual area of the window outside the given bounds.
- SetVirtualSizeWH(*args, **kwargs)
- SetVirtualSizeWH(int w, int h)
Set the the virtual size of a window in pixels. For most windows this
is just the client area of the window, but for some like scrolled
windows it is more or less independent of the screen window size.
- SetWindowStyle = SetWindowStyleFlag(*args, **kwargs)
- SetWindowStyleFlag(long style)
Sets the style of the window. Please note that some styles cannot be
changed after the window creation and that Refresh() might be called
after changing the others for the change to take place immediately.
- SetWindowStyleFlag(*args, **kwargs)
- SetWindowStyleFlag(long style)
Sets the style of the window. Please note that some styles cannot be
changed after the window creation and that Refresh() might be called
after changing the others for the change to take place immediately.
- SetWindowVariant(*args, **kwargs)
- SetWindowVariant(int variant)
Sets the variant of the window/font size to use for this window,
if the platform supports variants, (for example, wxMac.)
- Show(*args, **kwargs)
- Show(bool show=True) -> bool
Shows or hides the window. You may need to call Raise for a top level
window if you want to bring it to top, although this is not needed if
Show is called immediately after the frame creation. Returns True if
the window has been shown or hidden or False if nothing was done
because it already was in the requested state.
- Thaw(*args, **kwargs)
- Thaw()
Reenables window updating after a previous call to Freeze. Calls to
Freeze/Thaw may be nested, so Thaw must be called the same number of times
that Freeze was before the window will be updated.
- UnregisterHotKey(*args, **kwargs)
- UnregisterHotKey(int hotkeyId) -> bool
Unregisters a system wide hotkey.
- Update(*args, **kwargs)
- Update()
Calling this method immediately repaints the invalidated area of the
window instead of waiting for the EVT_PAINT event to happen, (normally
this would usually only happen when the flow of control returns to the
event loop.) Notice that this function doesn't refresh the window and
does nothing if the window has been already repainted. Use Refresh
first if you want to immediately redraw the window (or some portion of
it) unconditionally.
- UpdateWindowUI(*args, **kwargs)
- UpdateWindowUI(long flags=UPDATE_UI_NONE)
This function sends EVT_UPDATE_UI events to the window. The particular
implementation depends on the window; for example a wx.ToolBar will
send an update UI event for each toolbar button, and a wx.Frame will
send an update UI event for each menubar menu item. You can call this
function from your application to ensure that your UI is up-to-date at
a particular point in time (as far as your EVT_UPDATE_UI handlers are
concerned). This may be necessary if you have called
wx.UpdateUIEvent.SetMode or wx.UpdateUIEvent.SetUpdateInterval to
limit the overhead that wxWindows incurs by sending update UI events
in idle time.
The flags should be a bitlist of one or more of the following values:
wx.UPDATE_UI_NONE No particular value
wx.UPDATE_UI_RECURSE Call the function for descendants
wx.UPDATE_UI_FROMIDLE Invoked from OnIdle
If you are calling this function from an OnIdle function, make sure
you pass the wx.UPDATE_UI_FROMIDLE flag, since this tells the window to
only update the UI elements that need to be updated in idle time. Some
windows update their elements only when necessary, for example when a
menu is about to be shown. The following is an example of how to call
UpdateWindowUI from an idle function.
def OnIdle(self, evt):
if wx.UpdateUIEvent.CanUpdate(self):
UpdateWindowUI(wx.UPDATE_UI_FROMIDLE);
- WarpPointer(*args, **kwargs)
- WarpPointer(int x, int y)
Moves the pointer to the given position on the window.
NOTE: This function is not supported under Mac because Apple Human
Interface Guidelines forbid moving the mouse cursor programmatically.
Static methods inherited from Window:
- FindFocus(*args, **kwargs)
- FindFocus() -> Window
Returns the window or control that currently has the keyboard focus,
or None.
- GetCapture(*args, **kwargs)
- GetCapture() -> Window
Returns the window which currently captures the mouse or None
- NewControlId(*args, **kwargs)
- NewControlId() -> int
Generate a control id for the controls which were not given one.
- NextControlId(*args, **kwargs)
- NextControlId(int winid) -> int
Get the id of the control following the one with the given
(autogenerated) id
- PrevControlId(*args, **kwargs)
- PrevControlId(int winid) -> int
Get the id of the control preceding the one with the given
(autogenerated) id
Methods inherited from EvtHandler:
- AddPendingEvent(*args, **kwargs)
- AddPendingEvent(Event event)
- Bind(self, event, handler, source=None, id=-1, id2=-1)
- Bind an event to an event handler.
event One of the EVT_* objects that specifies the
type of event to bind,
handler A callable object to be invoked when the event
is delivered to self. Pass None to disconnect an
event handler.
source Sometimes the event originates from a different window
than self, but you still want to catch it in self. (For
example, a button event delivered to a frame.) By
passing the source of the event, the event handling
system is able to differentiate between the same event
type from different controls.
id,id2 Used for menu IDs or for event types that require a
range of IDs
- Connect(*args, **kwargs)
- Connect(int id, int lastId, int eventType, PyObject func)
- Disconnect(*args, **kwargs)
- Disconnect(int id, int lastId=-1, wxEventType eventType=wxEVT_NULL) -> bool
- GetEvtHandlerEnabled(*args, **kwargs)
- GetEvtHandlerEnabled() -> bool
- GetNextHandler(*args, **kwargs)
- GetNextHandler() -> EvtHandler
- GetPreviousHandler(*args, **kwargs)
- GetPreviousHandler() -> EvtHandler
- ProcessEvent(*args, **kwargs)
- ProcessEvent(Event event) -> bool
- ProcessPendingEvents(*args, **kwargs)
- ProcessPendingEvents()
- SetEvtHandlerEnabled(*args, **kwargs)
- SetEvtHandlerEnabled(bool enabled)
- SetNextHandler(*args, **kwargs)
- SetNextHandler(EvtHandler handler)
- SetPreviousHandler(*args, **kwargs)
- SetPreviousHandler(EvtHandler handler)
Methods inherited from Object:
- GetClassName(*args, **kwargs)
- GetClassName() -> String
Returns the class name of the C++ object using wxRTTI.
Data and other attributes inherited from Object:
- __dict__ = <dictproxy object at 0x01DF3670>
- dictionary for instance variables (if defined)
- __weakref__ = <attribute '__weakref__' of 'Object' objects>
- list of weak references to the object (if defined)
| |