本文整理汇总了Python中Resources.get__images_backgroundHomeLayoutImage方法的典型用法代码示例。如果您正苦于以下问题:Python Resources.get__images_backgroundHomeLayoutImage方法的具体用法?Python Resources.get__images_backgroundHomeLayoutImage怎么用?Python Resources.get__images_backgroundHomeLayoutImage使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Resources
的用法示例。
在下文中一共展示了Resources.get__images_backgroundHomeLayoutImage方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: __init__
# 需要导入模块: import Resources [as 别名]
# 或者: from Resources import get__images_backgroundHomeLayoutImage [as 别名]
def __init__(self, parent=None, title="Radio Location Display Screen", pos= wx.DefaultPosition, size=(680,500), *args, **kwargs):
wx.Frame.__init__(self, parent, title="Radio Location Display Screen", pos= wx.DefaultPosition, size=(680,500), *args, **kwargs)
# def __init__(self, parent=None, id=wx.ID_ANY, title="Radio Location Display Screen", pos=wx.DefaultPosition, size=(680,500), **kwargs):
#wx.Frame.__init__(self, parent, id=id, title=title, pos=pos, size=size,**kwargs) #actHL: need to see whether * and ** are required in front of arguments passed up to parent classes
self.CreateStatusBar()
self.panel1 = RadioPanel(self, style=wx.SUNKEN_BORDER|wx.NO_FULL_REPAINT_ON_RESIZE) # can't pass args or kwargs through because they are for the Frame and not the Panel (i.e. title won't make it through)
self.panel1.Bind(FC.EVT_MOTION, self.OnMove )
self.Bind(wx.EVT_CLOSE, self.OnClose)
self.BGImage = Resources.get__images_backgroundHomeLayoutImage()
self.panel1.AddImage(self.BGImage) # have to add the background image first so that radios show on top
self.done = False
self.Show() # must show the entire frame before zooming the Canvas within the frame
self.panel1.Canvas.ZoomToBB()