本文整理汇总了Python中Resources.getSaveIconBitmap方法的典型用法代码示例。如果您正苦于以下问题:Python Resources.getSaveIconBitmap方法的具体用法?Python Resources.getSaveIconBitmap怎么用?Python Resources.getSaveIconBitmap使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Resources
的用法示例。
在下文中一共展示了Resources.getSaveIconBitmap方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: __init__
# 需要导入模块: import Resources [as 别名]
# 或者: from Resources import getSaveIconBitmap [as 别名]
def __init__(self,
parent,
id = wx.ID_ANY,
size = wx.DefaultSize,
**kwargs): # The rest just get passed into FloatCanvas
wx.Panel.__init__(self, parent, id, size=size)
self.parent = parent
self.Canvas = FloatCanvas.FloatCanvas(self, **kwargs)
self.FileOps = [
("Open", self.OnOpen, Resources.getFolderIconBitmap()),
("Save", self.OnSave, Resources.getSaveIconBitmap()),
]
self.Modes = [
("Node Creation /\nSelection Tool",
GUIMode.GUIMouse(),
Resources.getNodeIconBitmap()),
("Edge Creation Tool",
GUIMode.GUIEdges(),
Resources.getEdgeIconBitmap()),
("Box Selection Tool",
GUIMode.GUISelect(),
Resources.getSelectIconBitmap()),
("Create 2D Pose Estimate",
GUIMode.GUIPoseEst(),
Resources.getOrangeDiagArrowBitmap()),
("Create 2D Nav Goal",
GUIMode.GUINavGoal(),
Resources.getPurpleDiagArrowBitmap()),
("Zoom In",
GUIMode.GUIZoomIn(),
Resources.getZoomInIconBitmap()),
("Zoom Out",
GUIMode.GUIZoomOut(),
Resources.getZoomOutIconBitmap()),
("Pan",
GUIMode.GUIPan(),
Resources.getAeroMoveIconBitmap()),
]
self.Utils = [
("Zoom to Fit", self.ZoomToFit, Resources.getZoomToFitIconBitmap()),
("Clear Route /\nClear Graph", self.Clear, Resources.getXIconBitmap()),
# ("Run Test", self.Test, Resources.getTestIconBitmap()),
]
self.font = wx.Font(pointSize=14, family=wx.FONTFAMILY_DEFAULT,
style=wx.FONTSTYLE_NORMAL, weight=wx.FONTWEIGHT_NORMAL,
faceName="lucida sans")
self.tools = []
self.BuildToolbar()
box = wx.BoxSizer(wx.VERTICAL)
box.Add(self.ToolBar, 0, wx.ALL | wx.ALIGN_LEFT | wx.GROW, 4)
box.Add(self.Canvas, 1, wx.GROW)
self.SetSizerAndFit(box)
# default to first mode
self.ToolBar.ToggleTool(self.tools[0].GetId(), True)
return None