]>
git.saurik.com Git - wxWidgets.git/blob - wxPython/wx/py/wxd/Window.py
1 """Decorator classes for documentation and shell scripting.
4 __author__
= "Patrick K. O'Brien <pobrien@orbtech.com>"
6 __revision__
= "$Revision$"[11:-2]
9 # These are not the real wxPython classes. These are Python versions
10 # for documentation purposes. They are also used to apply docstrings
11 # to the real wxPython classes, which are SWIG-generated wrappers for
15 from Base
import EvtHandler
16 import Parameters
as wx
25 class Window(EvtHandler
):
28 def __init__(self
, parent
, id, pos
=wx
.DefaultPosition
,
29 size
=wx
.DefaultSize
, style
=0, name
=wx
.PyPanelNameStr
):
33 def AcceptsFocus(self
):
37 def AddChild(self
, child
):
41 def CaptureMouse(self
):
45 def Center(self
, direction
=wx
.BOTH
):
49 def CenterOnParent(self
, direction
=wx
.BOTH
):
53 def CenterOnScreen(self
, direction
=wx
.BOTH
):
57 def Centre(self
, direction
=wx
.BOTH
):
61 def CentreOnParent(self
, direction
=wx
.BOTH
):
65 def CentreOnScreen(self
, direction
=wx
.BOTH
):
73 def ClientToScreen(self
, pt
):
77 def ClientToScreenXY(self
, x
, y
):
81 def Close(self
, force
=False):
85 def ConvertDialogPointToPixels(self
, pt
):
89 def ConvertDialogSizeToPixels(self
, sz
):
93 def ConvertPixelPointToDialog(self
, pt
):
97 def ConvertPixelSizeToDialog(self
, sz
):
101 def Create(self
, parent
, id, pos
=wx
.DefaultPosition
,
102 size
=wx
.DefaultSize
, style
=0, name
=wx
.PyPanelNameStr
):
106 def DLG_PNT(self
, win
, point_or_x
, y
=None):
110 def DLG_SZE(self
, win
, size_width
, height
=None):
118 def DestroyChildren(self
):
122 def DragAcceptFiles(self
, accept
):
126 def Enable(self
, enable
):
130 def FindWindowById(self
, id):
134 def FindWindowByName(self
, name
):
150 def GetAcceleratorTable(self
):
154 def GetAdjustedBestSize(self
):
158 def GetAutoLayout(self
):
162 def GetBackgroundColour(self
):
166 def GetBestSize(self
):
170 def GetBestVirtualSize(self
):
182 def GetCharHeight(self
):
186 def GetCharWidth(self
):
190 def GetChildren(self
):
194 def GetClientAreaOrigin(self
):
198 def GetClientRect(self
):
202 def GetClientSize(self
):
206 def GetClientSizeTuple(self
):
210 def GetConstraints(self
):
214 def GetContainingSizer(self
):
222 def GetDefaultItem(self
):
226 def GetDropTarget(self
):
230 def GetEventHandler(self
):
238 def GetForegroundColour(self
):
242 def GetFullTextExtent(self
):
246 def GetGrandParent(self
):
254 def GetHelpText(self
):
266 def GetMaxSize(self
):
278 def GetPosition(self
):
282 def GetPositionTuple(self
):
290 def GetScrollPos(self
, orientation
):
294 def GetScrollRange(self
, orientation
):
298 def GetScrollThumb(self
, orientation
):
306 def GetSizeTuple(self
):
314 def GetTextExtent(self
, string
):
322 def GetToolTip(self
):
326 def GetUpdateRegion(self
):
330 def GetValidator(self
):
334 def GetVirtualSize(self
):
338 def GetVirtualSizeTuple(self
):
342 def GetWindowStyleFlag(self
):
346 def HasCapture(self
):
350 def HasScrollbar(self
, orient
):
358 def HitTest(self
, pt
):
362 def InitDialog(self
):
366 def IsBeingDeleted(self
):
374 def IsExposed(self
, x
, y
, w
=0, h
=0):
378 def IsExposedPoint(self
, pt
):
382 def IsExposedRect(self
, rect
):
386 def IsRetained(self
):
394 def IsTopLevel(self
):
410 def LoadFromResource(self
, parent
, resourceName
, resourceTable
=wx
.NULL
):
411 """Only if USE_WX_RESOURCES."""
418 def MakeModal(self
, flag
=True):
422 def Move(self
, point
, flags
=wx
.SIZE_USE_EXISTING
):
426 def MoveXY(self
, x
, y
, flags
=wx
.SIZE_USE_EXISTING
):
430 def OnPaint(self
, event
):
442 def PopEventHandler(self
, deleteHandler
=False):
446 def PopupMenu(self
, menu
, pos
):
450 def PopupMenuXY(self
, menu
, x
, y
):
454 def PushEventHandler(self
, handler
):
462 def Refresh(self
, eraseBackground
=True, rect
=wx
.NULL
):
466 def RefreshRect(self
, rect
):
470 def ReleaseMouse(self
):
474 def RemoveChild(self
, child
):
478 def RemoveEventHandler(self
, handler
):
482 def Reparent(self
, newParent
):
486 def ScreenToClient(self
, pt
):
490 def ScreenToClientXY(self
, x
, y
):
494 def ScrollLines(self
, lines
):
498 def ScrollPages(self
, pages
):
502 def ScrollWindow(self
, dx
, dy
, rect
=wx
.NULL
):
506 def SetAcceleratorTable(self
, accel
):
510 def SetAutoLayout(self
, autoLayout
):
514 def SetBackgroundColour(self
, colour
):
518 def SetCaret(self
, caret
):
522 def SetClientSize(self
, size
):
526 def SetClientSizeWH(self
, width
, height
):
530 def SetConstraints(self
, constraints
):
534 def SetContainingSizer(self
, sizer
):
538 def SetCursor(self
, cursor
):
542 def SetDefaultItem(self
, btn
):
546 def SetDimensions(self
):
550 def SetDropTarget(self
, target
):
554 def SetEventHandler(self
, handler
):
558 def SetExtraStyle(self
, exStyle
):
566 def SetFocusFromKbd(self
):
570 def SetFont(self
, font
):
574 def SetForegroundColour(self
, colour
):
578 def SetHelpText(self
, helpText
):
582 def SetHelpTextForId(self
, text
):
590 def SetLabel(self
, label
):
594 def SetName(self
, name
):
598 def SetPosition(self
, pos
, flags
=wx
.SIZE_USE_EXISTING
):
602 def SetRect(self
, rect
, sizeFlags
=wx
.SIZE_AUTO
):
606 def SetScrollPos(self
, orientation
, pos
, refresh
=True):
610 def SetScrollbar(self
, orientation
, pos
, thumbSize
, range, refresh
=True):
614 def SetSize(self
, x
, y
, width
, height
, sizeFlags
=wx
.SIZE_AUTO
):
618 def SetSizeHints(self
, minW
, minH
, maxW
=-1, maxH
=-1, incW
=-1, incH
=-1):
622 def SetSizer(self
, sizer
, deleteOld
=True):
626 def SetSizerAndFit(self
, sizer
, deleteOld
=True):
630 def SetTitle(self
, title
):
634 def SetTmpDefaultItem(self
, win
):
638 def SetToolTip(self
, tooltip
):
642 def SetToolTipString(self
, tip
):
646 def SetValidator(self
, validator
):
650 def SetVirtualSize(self
, size
):
654 def SetVirtualSizeHints(self
, minW
, minH
, maxW
=-1, maxH
=-1):
658 def SetVirtualSizeWH(self
, x
, y
):
662 def SetWindowStyle(self
, style
):
666 def SetWindowStyleFlag(self
, style
):
670 def Show(self
, show
=True):
678 def TransferDataFromWindow(self
):
682 def TransferDataToWindow(self
):
686 def UnsetConstraints(self
, constraints
):
694 def UpdateWindowUI(self
):
702 def WarpPointer(self
, x
, y
):
707 class PyWindow(Window
):
714 def _setCallbackInfo(self
):
718 def base_AcceptsFocus(self
):
722 def base_AcceptsFocusFromKeyboard(self
):
726 def base_AddChild(self
):
730 def base_DoGetBestSize(self
):
734 def base_DoGetClientSize(self
):
738 def base_DoGetPosition(self
):
742 def base_DoGetSize(self
):
746 def base_DoGetVirtualSize(self
):
750 def base_DoMoveWindow(self
):
754 def base_DoSetClientSize(self
):
758 def base_DoSetSize(self
):
762 def base_DoSetVirtualSize(self
):
766 def base_GetMaxSize(self
):
770 def base_InitDialog(self
):
774 def base_RemoveChild(self
):
778 def base_TransferDataFromWindow(self
):
782 def base_TransferDataToWindow(self
):
786 def base_Validate(self
):
791 class TopLevelWindow(Window
):
810 def IsFullScreen(self
):
814 def IsIconized(self
):
818 def IsMaximized(self
):
842 def ShowFullScreen(self
):