本文整理汇总了Python中Plugins.registerPalettePage方法的典型用法代码示例。如果您正苦于以下问题:Python Plugins.registerPalettePage方法的具体用法?Python Plugins.registerPalettePage怎么用?Python Plugins.registerPalettePage使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Plugins
的用法示例。
在下文中一共展示了Plugins.registerPalettePage方法的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: designTimeSource
# 需要导入模块: import Plugins [as 别名]
# 或者: from Plugins import registerPalettePage [as 别名]
def designTimeSource(self, position = 'wx.DefaultPosition', size = 'wx.DefaultSize'):
return {'pos': position,
'size': size,
'style': 'wx.DIRP_DEFAULT_STYLE',
'path': "''",
'message': "'Select a folder'",
'wildcard': "'*.*'",
'name': `self.name`}
#-------------------------------------------------------------------------------
import Plugins
Plugins.registerPalettePage('Buttons', _('Buttons'))
Plugins.registerComponents('Buttons',
(wx.Button, 'wx.Button', ButtonDTC),
(wx.BitmapButton, 'wx.BitmapButton', BitmapButtonDTC),
(wx.SpinButton, 'wx.SpinButton', SpinButtonDTC),
(wx.SpinCtrl, 'wx.SpinCtrl', SpinCtrlDTC),
(wx.lib.buttons.GenButton, 'wx.lib.buttons.GenButton', GenButtonDTC),
(wx.lib.buttons.GenBitmapButton, 'wx.lib.buttons.GenBitmapButton', GenBitmapButtonDTC),
(wx.lib.buttons.GenToggleButton, 'wx.lib.buttons.GenToggleButton', GenToggleButtonDTC),
(wx.lib.buttons.GenBitmapToggleButton, 'wx.lib.buttons.GenBitmapToggleButton', GenBitmapToggleButtonDTC),
(wx.lib.buttons.GenBitmapTextButton, 'wx.lib.buttons.GenBitmapTextButton', GenBitmapTextButtonDTC),
(wx.lib.buttons.GenBitmapTextToggleButton, 'wx.lib.buttons.GenBitmapTextToggleButton', GenBitmapTextToggleButtonDTC),
(wx.ContextHelpButton, 'wx.ContextHelpButton', ContextHelpButtonDTC),
)
try:
示例2: designTimeSource
# 需要导入模块: import Plugins [as 别名]
# 或者: from Plugins import registerPalettePage [as 别名]
def designTimeSource(self, position = 'wx.DefaultPosition', size = 'wx.DefaultSize'):
return {'pos': position,
'size': self.getDefCtrlSize(),
'style': 'wx.CP_DEFAULT_STYLE',
'name': `self.name`,
'label': `self.name`}
def events(self):
return ContainerDTC.events(self) + ['CollapsiblePaneEvent']
#-------------------------------------------------------------------------------
import Plugins
Plugins.registerPalettePage('ContainersLayout', _('Containers/Layout'))
Plugins.registerComponents('ContainersLayout',
(wx.Panel, 'wx.Panel', PanelDTC),
(wx.ScrolledWindow, 'wx.ScrolledWindow', ScrolledWindowDTC),
(wx.SplitterWindow, 'wx.SplitterWindow', SplitterWindowDTC),
(wx.SashWindow, 'wx.SashWindow', SashWindowDTC),
(wx.SashLayoutWindow, 'wx.SashLayoutWindow', SashLayoutWindowDTC),
(wx.ToolBar, 'wx.ToolBar', ToolBarDTC),
(wx.StatusBar, 'wx.StatusBar', StatusBarDTC),
(wx.Window, 'wx.Window', ContainerDTC),
(wx.Notebook, 'wx.Notebook', NotebookDTC),
(wx.Listbook, 'wx.Listbook', ListbookDTC),
(wx.Choicebook, 'wx.Choicebook', ChoicebookDTC),
)
示例3: hideDesignTime
# 需要导入模块: import Plugins [as 别名]
# 或者: from Plugins import registerPalettePage [as 别名]
self.editors.update({'CursorId': EnumConstrPropEdit,
'Visible': BoolPropEdit})
self.names['CursorId'] = stockCursorIds
def hideDesignTime(self):
return ['Handle']
def constructor(self):
return {'CursorId': 'id'}
def designTimeSource(self, position='wx.DefaultPosition', size='wx.DefaultSize'):
return {'id': 'wx.CURSOR_ARROW'}
#-------------------------------------------------------------------------------
import Plugins
Plugins.registerPalettePage('Utilities (Data)', _('Utilities (Data)'))
Plugins.registerComponents('Utilities (Data)',
(wx.MenuBar, 'wx.MenuBar', MenuBarDTC),
(wx.Menu, 'wx.Menu', MenuDTC),
(wx.ImageList, 'wx.ImageList', ImageListDTC),
(wx.Timer, 'wx.Timer', TimerDTC),
(wx.StockCursor, 'wx.StockCursor', StockCursorDTC),
#(wx.AcceleratorTable, 'wx.AcceleratorTable', AcceleratorTableDTC),
#(wxCursor: ['wx.Cursor', CursorDTC],
# these objects need design time inheritance
#(wxTextDropTarget, 'wx.TextDropTarget', NYIDTC),
#(wxFileDropTarget, 'wx.FileDropTarget', NYIDTC),
)
示例4: properties
# 需要导入模块: import Plugins [as 别名]
# 或者: from Plugins import registerPalettePage [as 别名]
self.ctrlDisabled = True
def properties(self):
props = TextCtrlDTC.properties(self)
props.update({'SearchButtonVisible': ('CtrlRoute',
wx.SearchCtrl.IsSearchButtonVisible, wx.SearchCtrl.ShowSearchButton),
'CancelButtonVisible': ('CtrlRoute',
wx.SearchCtrl.IsCancelButtonVisible, wx.SearchCtrl.ShowCancelButton)})
return props
#-------------------------------------------------------------------------------
import Plugins
Plugins.registerPalettePage('BasicControls', _('Basic Controls'))
Plugins.registerComponents('BasicControls',
(wx.StaticText, 'wx.StaticText', StaticTextDTC),
(wx.TextCtrl, 'wx.TextCtrl', TextCtrlDTC),
(wx.Choice, 'wx.Choice', ChoiceDTC),
(wx.ComboBox, 'wx.ComboBox', ComboBoxDTC),
(wx.CheckBox, 'wx.CheckBox', CheckBoxDTC),
(wx.RadioButton, 'wx.RadioButton', RadioButtonDTC),
(wx.Slider, 'wx.Slider', SliderDTC),
(wx.Gauge, 'wx.Gauge', GaugeDTC),
(wx.StaticBitmap, 'wx.StaticBitmap', StaticBitmapDTC),
(wx.ScrollBar, 'wx.ScrollBar', ScrollBarDTC),
(wx.StaticBox, 'wx.StaticBox', StaticBoxDTC),
(wx.StaticLine, 'wx.StaticLine', StaticLineDTC),
(wx.html.HtmlWindow, 'wx.html.HtmlWindow', HtmlWindowDTC),
示例5: _
# 需要导入模块: import Plugins [as 别名]
# 或者: from Plugins import registerPalettePage [as 别名]
#-------------------------------------------------------------------------------
import wx.lib.stattext
import wx.lib.masked.textctrl
import wx.lib.masked.ipaddrctrl
import wx.lib.masked.combobox
import wx.lib.masked.numctrl
import wx.lib.masked.timectrl
import wx.lib.intctrl
import wx.lib.scrolledpanel
import wx.lib.hyperlink
import Plugins
Plugins.registerPalettePage('Library', _('Library'))
Plugins.registerComponents('Library',
(wx.lib.stattext.GenStaticText, 'wx.lib.stattext.GenStaticText', GenStaticTextDTC),
(wx.lib.masked.textctrl.TextCtrl, 'wx.lib.masked.textctrl.TextCtrl', MaskedTextCtrlDTC),
(wx.lib.masked.ipaddrctrl.IpAddrCtrl, 'wx.lib.masked.ipaddrctrl.IpAddrCtrl', IpAddrCtrlDTC),
(wx.lib.masked.combobox.ComboBox, 'wx.lib.masked.combobox.ComboBox', MaskedComboBoxDTC),
(wx.lib.masked.numctrl.NumCtrl, 'wx.lib.masked.numctrl.NumCtrl', MaskedNumCtrlDTC),
(wx.lib.masked.timectrl.TimeCtrl, 'wx.lib.masked.timectrl.TimeCtrl', TimeCtrlDTC),
(wx.lib.intctrl.IntCtrl, 'wx.lib.intctrl.IntCtrl', IntCtrlDTC),
(wx.lib.scrolledpanel.ScrolledPanel, 'wx.lib.scrolledpanel.ScrolledPanel', ScrolledPanelDTC),
(wx.lib.hyperlink.HyperLinkCtrl, 'wx.lib.hyperlink.HyperLinkCtrl', HyperLinkCtrlDTC),
)
try:
import wx.lib.splitter
示例6: events
# 需要导入模块: import Plugins [as 别名]
# 或者: from Plugins import registerPalettePage [as 别名]
def events(self):
return WindowDTC.events(self) + ['GridEvent']
def writeImports(self):
return '\n'.join( (WindowDTC.writeImports(self),
'import wx.grid') )
def hideDesignTime(self):
return WindowDTC.hideDesignTime(self) + \
['RowLabelAlignment', 'ColLabelAlignment', 'Table',
'DefaultEditor', 'DefaultRenderer', 'TargetWindow', 'TargetRect',
'DefaultCellAlignment']
#-------------------------------------------------------------------------------
import Plugins
Plugins.registerPalettePage('ListControls', _('List Controls'))
Plugins.registerComponents('ListControls',
(wx.ListBox, 'wx.ListBox', ListBoxDTC),
(wx.CheckListBox, 'wx.CheckListBox', CheckListBoxDTC),
(wx.grid.Grid, 'wx.grid.Grid', GridDTC),
(wx.ListCtrl, 'wx.ListCtrl', ListCtrlDTC),
(wx.ListView, 'wx.ListView', ListViewDTC),
(wx.TreeCtrl, 'wx.TreeCtrl', TreeCtrlDTC),
(wx.RadioBox, 'wx.RadioBox', RadioBoxDTC),
(wx.GenericDirCtrl, 'wx.GenericDirCtrl', GenericDirCtrlDTC),
)