]>
git.saurik.com Git - wxWidgets.git/blob - wxPython/wx/py/wxd/Panel.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 import Parameters
as wx
16 from Window
import Window
28 def __init__(self
, parent
, id, pos
=wx
.DefaultPosition
,
29 size
=wx
.DefaultSize
, style
=wx
.TAB_TRAVERSAL
,
30 name
=wx
.PyPanelNameStr
):
34 def Create(self
, parent
, id, pos
=wx
.DefaultPosition
,
35 size
=wx
.DefaultSize
, style
=wx
.TAB_TRAVERSAL
,
36 name
=wx
.PyPanelNameStr
):
52 def _setCallbackInfo(self
):
56 def base_AcceptsFocus(self
):
60 def base_AcceptsFocusFromKeyboard(self
):
64 def base_AddChild(self
):
68 def base_DoGetBestSize(self
):
72 def base_DoGetClientSize(self
):
76 def base_DoGetPosition(self
):
80 def base_DoGetSize(self
):
84 def base_DoGetVirtualSize(self
):
88 def base_DoMoveWindow(self
):
92 def base_DoSetClientSize(self
):
96 def base_DoSetSize(self
):
100 def base_DoSetVirtualSize(self
):
104 def base_GetMaxSize(self
):
108 def base_InitDialog(self
):
112 def base_RemoveChild(self
):
116 def base_TransferDataFromWindow(self
):
120 def base_TransferDataToWindow(self
):
124 def base_Validate(self
):
129 class ScrolledWindow(Panel
):
132 def __init__(self
, parent
, id=-1, pos
=wx
.DefaultPosition
,
133 size
=wx
.DefaultSize
, style
=wx
.HSCROLL|wx
.VSCROLL
,
134 name
=wx
.PyPanelNameStr
):
138 def Create(self
, parent
, id=-1, pos
=wx
.DefaultPosition
,
139 size
=wx
.DefaultSize
, style
=wx
.HSCROLL|wx
.VSCROLL
,
140 name
=wx
.PyPanelNameStr
):
144 def AdjustScrollbars(self
):
148 def CalcScrolledPosition(self
, *args
):
149 """*args can be a point or (x, y) tuple"""
152 def CalcScrolledPosition1(self
, pt
):
156 def CalcScrolledPosition2(self
, x
, y
):
160 def CalcUnscrolledPosition(self
, *args
):
161 """*args can be a point or (x, y) tuple"""
164 def CalcUnscrolledPosition1(self
, pt
):
168 def CalcUnscrolledPosition2(self
, x
, y
):
172 def EnableScrolling(self
, xScrolling
, yScrolling
):
184 def GetScrollPageSize(self
, orient
):
188 def GetScrollPixelsPerUnit(self
):
192 def GetTargetWindow(self
):
196 def GetViewStart(self
):
200 def IsRetained(self
):
208 def PrepareDC(self
, dc
):
212 def Scroll(self
, x
, y
):
216 def SetScale(self
, xs
, ys
):
220 def SetScrollPageSize(self
, orient
, pageSize
):
224 def SetScrollRate(self
, xstep
, ystep
):
225 """Set the x, y scrolling increments."""
228 def SetScrollbars(self
, pixelsPerUnitX
, pixelsPerUnitY
,
229 noUnitsX
, noUnitsY
, xPos
=0, yPos
=0, noRefresh
=False):
233 def SetTargetWindow(self
, window
):