本文整理汇总了Python中wx.EmptyIcon方法的典型用法代码示例。如果您正苦于以下问题:Python wx.EmptyIcon方法的具体用法?Python wx.EmptyIcon怎么用?Python wx.EmptyIcon使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类wx
的用法示例。
在下文中一共展示了wx.EmptyIcon方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: __set_properties
# 需要导入模块: import wx [as 别名]
# 或者: from wx import EmptyIcon [as 别名]
def __set_properties(self):
# begin wxGlade: SerialDialog.__set_properties
self.SetTitle("Port Settings")
_icon = wx.EmptyIcon()
path = self.outputwin.workingdir
_icon.CopyFromBitmap(wx.Bitmap(path + "/../images/zulu_logo16x16.png", wx.BITMAP_TYPE_ANY))
self.SetIcon(_icon)
self.combo_box_port.SetMinSize((120, 29))
self.combo_box_baudrate.SetMinSize((120, 29))
self.combo_box_bytesize.SetMinSize((120, 29))
self.combo_box_parity.SetMinSize((120, 29))
self.combo_box_stopbits.SetMinSize((120, 29))
self.radio_box_rtscts.SetSelection(0)
self.radio_box_xonxoff.SetSelection(0)
self.button_cancel.SetDefault()
self.button_ok.SetDefault()
# end wxGlade
示例2: __set_properties
# 需要导入模块: import wx [as 别名]
# 或者: from wx import EmptyIcon [as 别名]
def __set_properties(self):
# begin wxGlade: FrameTerminal.__set_properties
#self.SetTitle("serialAssist")
_icon = wx.EmptyIcon()
path = self.outputwin.workingdir
_icon.CopyFromBitmap(wx.Bitmap(path + "/../images/zulu_logo16x16.png", wx.BITMAP_TYPE_ANY))
self.SetIcon(_icon)
#self.SetSize((543, 433))
self.SetSize((743, 560))
self.frame_statusbar.SetStatusWidths([-1])
# statusbar fields
frame_statusbar_fields = [""]
for i in range(len(frame_statusbar_fields)):
self.frame_statusbar.SetStatusText(frame_statusbar_fields[i], i)
self.frame_toolbar.SetToolBitmapSize((32, 32))
self.frame_toolbar.SetToolSeparation(9)
self.frame_toolbar.Realize()
self.text_ctrl_output.SetFont(wx.Font(11, wx.DEFAULT,
wx.NORMAL, wx.NORMAL, 0, ""))
# end wxGlade
示例3: __set_properties
# 需要导入模块: import wx [as 别名]
# 或者: from wx import EmptyIcon [as 别名]
def __set_properties(self):
# begin wxGlade: DisplayDialog.__set_properties
_icon = wx.EmptyIcon()
path = self.outputwin.workingdir
_icon.CopyFromBitmap(wx.Bitmap(path + "/../images/zulu_logo16x16.png", wx.BITMAP_TYPE_ANY))
self.SetIcon(_icon)
self.SetTitle("display settings")
#initialize depend on settings
self.radio_box_crlf.SetSelection(self.preNewline)
self.radio_box_echo.SetSelection(self.preEcho)
self.radio_box_unprintable.SetSelection(self.preUnprintable)
self.button_font.SetMinSize((65, 32))
self.button_forecolor.SetMinSize((65, 29))
self.button_backcolor.SetMinSize((65, 32))
# end wxGlade
示例4: load_icon
# 需要导入模块: import wx [as 别名]
# 或者: from wx import EmptyIcon [as 别名]
def load_icon(filename):
icon = wx.EmptyIcon()
bitmap = load_bitmap(filename)
icon.CopyFromBitmap(bitmap)
return icon
示例5: GetMondrianIcon
# 需要导入模块: import wx [as 别名]
# 或者: from wx import EmptyIcon [as 别名]
def GetMondrianIcon():
icon = wx.EmptyIcon()
icon.CopyFromBitmap(GetMondrianBitmap())
return icon
示例6: getIcon
# 需要导入模块: import wx [as 别名]
# 或者: from wx import EmptyIcon [as 别名]
def getIcon( data ):
"""Return the data from the resource as a wxIcon"""
import cStringIO
stream = cStringIO.StringIO(data)
image = wx.ImageFromStream(stream)
icon = wx.EmptyIcon()
icon.CopyFromBitmap(wx.BitmapFromImage(image))
return icon
示例7: getAutoRefreshIcon
# 需要导入模块: import wx [as 别名]
# 或者: from wx import EmptyIcon [as 别名]
def getAutoRefreshIcon():
icon = EmptyIcon()
icon.CopyFromBitmap(getAutoRefreshBitmap())
return icon
#----------------------------------------------------------------------
示例8: getIconIcon
# 需要导入模块: import wx [as 别名]
# 或者: from wx import EmptyIcon [as 别名]
def getIconIcon():
icon = EmptyIcon()
icon.CopyFromBitmap(getIconBitmap())
return icon
#----------------------------------------------------------------------
示例9: getLocateIcon
# 需要导入模块: import wx [as 别名]
# 或者: from wx import EmptyIcon [as 别名]
def getLocateIcon():
icon = EmptyIcon()
icon.CopyFromBitmap(getLocateBitmap())
return icon
#----------------------------------------------------------------------
示例10: getLocateArmedIcon
# 需要导入模块: import wx [as 别名]
# 或者: from wx import EmptyIcon [as 别名]
def getLocateArmedIcon():
icon = EmptyIcon()
icon.CopyFromBitmap(getLocateArmedBitmap())
return icon
#----------------------------------------------------------------------
示例11: getRefreshIcon
# 需要导入模块: import wx [as 别名]
# 或者: from wx import EmptyIcon [as 别名]
def getRefreshIcon():
icon = EmptyIcon()
icon.CopyFromBitmap(getRefreshBitmap())
return icon
#----------------------------------------------------------------------
示例12: getToolBitmapButtonIcon
# 需要导入模块: import wx [as 别名]
# 或者: from wx import EmptyIcon [as 别名]
def getToolBitmapButtonIcon():
icon = EmptyIcon()
icon.CopyFromBitmap(getToolBitmapButtonBitmap())
return icon
#----------------------------------------------------------------------
示例13: getToolBoxSizerIcon
# 需要导入模块: import wx [as 别名]
# 或者: from wx import EmptyIcon [as 别名]
def getToolBoxSizerIcon():
icon = EmptyIcon()
icon.CopyFromBitmap(getToolBoxSizerBitmap())
return icon
#----------------------------------------------------------------------
示例14: getToolButtonIcon
# 需要导入模块: import wx [as 别名]
# 或者: from wx import EmptyIcon [as 别名]
def getToolButtonIcon():
icon = EmptyIcon()
icon.CopyFromBitmap(getToolButtonBitmap())
return icon
#----------------------------------------------------------------------
示例15: getToolCheckBoxIcon
# 需要导入模块: import wx [as 别名]
# 或者: from wx import EmptyIcon [as 别名]
def getToolCheckBoxIcon():
icon = EmptyIcon()
icon.CopyFromBitmap(getToolCheckBoxBitmap())
return icon
#----------------------------------------------------------------------