wxPython之wxFrame

在使用wxWidgets的手冊時發 現,wxWidgets的幫助很多時候不完全適用於wxPython,因為wxPython有的功能有所擴展。僅參考wxWidgets的手冊進行 wxYthon編程還是不夠。很多時候還是有必須要用python的dir函數將wx的對象、方法、屬性列出來,然後根據名稱來猜測其功能,當然也可以到 網絡上查找或參考相應的范例。 下面是用pythn列出來wxFrame的對象、方法和屬性。 例如wxFrame的全屏在wxWidgets的幫助中沒有相應的提示,但用wxPython可用ShowFullScreen即可實現窗口的全屏。 ['AcceleratorTable', 'AcceptsFocus', 'AcceptsFocusFromKeyboard', 'AddChild',
'AddPendingEvent', 'AdjustForLayoutDirection', 'AssociateHandle', 'AutoLayout',
'BackgroundColour', 'BackgroundStyle', 'BestSize', 'BestVirtualSize', 'Bind',
'Border', 'CacheBestSize', 'CanSetTransparent', 'CaptureMouse', 'Caret', 'Center',
'CenterOnParent', 'CenterOnScreen', 'Centre', 'CentreOnParent', 'CentreOnScreen',
'CharHeight', 'CharWidth', 'Children', 'ClassName', 'ClearBackground',
'ClientAreaOrigin', 'ClientRect', 'ClientSize', 'ClientToScreen', 'ClientToScreenXY',
'Close', 'Command', 'Connect', 'Constraints', 'ContainingSizer',
'ConvertDialogPointToPixels', 'ConvertDialogSizeToPixels', 'ConvertPixelPointToDialog',
'ConvertPixelSizeToDialog', 'Create', 'CreateStatusBar', 'CreateToolBar', 'Cursor',
'DLG_PNT', 'DLG_SZE', 'DefaultAttributes', 'DefaultItem', 'Destroy', 'DestroyChildren',
'Disable', 'Disconnect', 'DissociateHandle', 'DoGiveHelp', 'DoMenuUpdates', 'DragAcceptFiles',
'DropTarget', 'EffectiveMinSize', 'Enable', 'EnableCloseButton', 'Enabled',
'EventHandler', 'EvtHandlerEnabled', 'ExtraStyle', 'FindFocus', 'FindWindowById',
'FindWindowByName', 'Fit', 'FitInside', 'Font', 'ForegroundColour', 'Freeze',
'GetAcceleratorTable', 'GetAdjustedBestSize', 'GetAutoLayout', 'GetBackgroundColour',
'GetBackgroundStyle', 'GetBestFittingSize', 'GetBestSize', 'GetBestSizeTuple',
'GetBestVirtualSize', 'GetBorder', 'GetCapture', 'GetCaret', 'GetCharHeight',
'GetCharWidth', 'GetChildren', 'GetClassDefaultAttributes', 'GetClassName',
'GetClientAreaOrigin', 'GetClientRect', 'GetClientSize', 'GetClientSizeTuple',
'GetConstraints', 'GetContainingSizer', 'GetCursor', 'GetDefaultAttributes',
'GetDefaultItem', 'GetDropTarget', 'GetEffectiveMinSize', 'GetEventHandler',
'GetEvtHandlerEnabled', 'GetExtraStyle', 'GetFont', 'GetForegroundColour',
'GetFullTextExtent', 'GetGrandParent', 'GetHandle', 'GetHelpText', 'GetHelpTextAtPoint',
'GetIcon', 'GetId', 'GetLabel', 'GetLayoutDirection', 'GetMaxHeight', 'GetMaxSize',
'GetMaxWidth', 'GetMenuBar', 'GetMinHeight', 'GetMinSize', 'GetMinWidth', 'GetName',
'GetNextHandler', 'GetParent', 'GetPosition', 'GetPositionTuple', 'GetPreviousHandler',
'GetRect', 'GetScreenPosition', 'GetScreenPositionTuple', 'GetScreenRect', 'GetScrollPos',
'GetScrollRange', 'GetScrollThumb', 'GetSize', 'GetSizeTuple', 'GetSizer', 'GetStatusBar',
'GetStatusBarPane', 'GetTextExtent', 'GetThemeEnabled', 'GetTitle', 'GetTmpDefaultItem',
'GetToolBar', 'GetToolTip', 'GetTopLevelParent', 'GetUpdateClientRect', 'GetUpdateRegion',
'GetValidator', 'GetVirtualSize', 'GetVirtualSizeTuple', 'GetWindowBorderSize',
'GetWindowStyle', 'GetWindowStyleFlag', 'GetWindowVariant', 'GrandParent', 'Handle',
'HasCapture', 'HasFlag', 'HasMultiplePages', 'HasScrollbar', 'HasTransparentBackground',
'HelpText', 'Hide', 'HitTest', 'HitTestXY', 'Icon', 'Iconize', 'Id', 'InheritAttributes',
'InheritsBackgroundColour', 'InitDialog', 'InvalidateBestSize', 'IsActive',
'IsAlwaysMaximized', 'IsBeingDeleted', 'IsDoubleBuffered', 'IsEnabled','IsExposed',
'IsExposedPoint', 'IsExposedRect', 'IsFrozen', 'IsFullScreen', 'IsIconized', 'IsMaximized',
'IsRetained', 'IsSameAs', 'IsShown', 'IsShownOnScreen', 'IsTopLevel', 'Label', 'Layout',
'LayoutDirection', 'LineDown', 'LineUp', 'Lower', 'MacGetMetalAppearance',
'MacSetMetalAppearance', 'MakeModal', 'MaxHeight','MaxSize', 'MaxWidth', 'Maximize',
'MenuBar', 'MinHeight', 'MinSize', 'MinWidth', 'Move', 'MoveAfterInTabOrder',
'MoveBeforeInTabOrder', 'MoveXY', 'Name', 'Navigate', 'NewControlId', 'NextControlId',
'NextHandler', 'OnPaint', 'PageDown', 'PageUp', 'Parent', 'PopEventHandler',
'PopStatusText', 'PopupMenu', 'PopupMenuXY', 'Position', 'PostCreate', 'PrepareDC',
'PrevControlId', 'PreviousHandler', 'ProcessCommand', 'ProcessEvent', 'ProcessPendingEvents',
'PushEventHandler', 'PushStatusText', 'Raise', 'Rect', 'Refresh', 'RefreshRect',
'RegisterHotKey', 'ReleaseMouse', 'RemoveChild', 'RemoveEventHandler', 'Reparent',
'RequestUserAttention', 'Restore', 'ScreenPosition', 'ScreenRect', 'ScreenToClient',
'ScreenToClientXY', 'ScrollLines', 'ScrollPages', 'ScrollWindow', 'SendSizeEvent',
'SetAcceleratorTable', 'SetAutoLayout', 'SetBackgroundColour', 'SetBackgroundStyle',
'SetBestFittingSize', 'SetCaret', 'SetClientRect', 'SetClientSize', 'SetClientSizeWH',
'SetConstraints', 'SetContainingSizer', 'SetCursor', 'SetDefaultItem', 'SetDimensions',
'SetDoubleBuffered', 'SetDropTarget', 'SetEventHandler', 'SetEvtHandlerEnabled',
'SetExtraStyle', 'SetFocus', 'SetFocusFromKbd', 'SetFont', 'SetForegroundColour',
'SetHelpText', 'SetHelpTextForId', 'SetIcon', 'SetIcons', 'SetId', 'SetInitialSize',
'SetLabel', 'SetLayoutDirection', 'SetMaxSize', 'SetMenuBar', 'SetMinSize', 'SetName',
'SetNextHandler', 'SetOwnBackgroundColour', 'SetOwnFont','SetOwnForegroundColour',
'SetPosition', 'SetPreviousHandler', 'SetRect', 'SetScrollPos', 'SetScrollbar',
'SetShape', 'SetSize', 'SetSizeHints', 'SetSizeHintsSz', 'SetSizeWH', 'SetSizer',
'SetSizerAndFit', 'SetStatusBar', 'SetStatusBarPane', 'SetStatusText', 'SetStatusWidths',
'SetThemeEnabled', 'SetTitle', 'SetTmpDefaultItem', 'SetToolBar', 'SetToolTip',
'SetToolTipString', 'SetTransparent', 'SetValidator', 'SetVirtualSize',
'SetVirtualSizeHints', 'SetVirtualSizeHintsSz', 'SetVirtualSizeWH', 'SetWindowStyle',
'SetWindowStyleFlag', 'SetWindowVariant', 'ShouldInheritColours', 'Show',
'ShowFullScreen', 'Shown', 'Size', 'Sizer', 'StatusBar', 'StatusBarPane', 'Thaw',
'ThemeEnabled', 'Title', 'TmpDefaultItem', 'ToggleWindowStyle', 'ToolBar',
'ToolTip', 'TopLevel', 'TopLevelParent', 'TransferDataFromWindow',
'TransferDataToWindow', 'Unbind', 'UnregisterHotKey', 'Update', 'UpdateClientRect',
'UpdateRegion', 'UpdateWindowUI', 'UseBgCol', 'Validate', 'Validator', 'VirtualSize',
'WarpPointer', 'WindowStyle', 'WindowStyleFlag', 'WindowVariant',
'__class__', '__delattr__', '__dict__', '__doc__', '__getattribute__',
'__hash__', '__init__', '__module__', '__new__', '__reduce__', '__reduce_ex__',
'__repr__', '__setattr__', '__str__', '__weakref__', '_setOORInfo', 'thisown']
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值