pigrow_remote.py 文件源码

python
阅读 21 收藏 0 点赞 0 评论 0

项目:Pigrow 作者: Pragmatismo 项目源码 文件源码
def __init__( self, parent ):
        win_height = parent.GetSize()[1]
        height_of_pannels_above = 230
        space_left = win_height - height_of_pannels_above
        wx.Panel.__init__ ( self, parent, id = wx.ID_ANY, pos = (0, height_of_pannels_above), size = wx.Size(285, space_left), style = wx.TAB_TRAVERSAL )
        # Start drawing the UI elements
        wx.StaticText(self,  label='System Config Menu', pos=(25, 10))
        self.read_system_btn = wx.Button(self, label='Read System Info', pos=(10, 70), size=(175, 30))
        self.read_system_btn.Bind(wx.EVT_BUTTON, self.read_system_click)
        self.update_pigrow_btn = wx.Button(self, label='update pigrow', pos=(10, 100), size=(175, 30))
        self.update_pigrow_btn.Bind(wx.EVT_BUTTON, self.update_pigrow_click)
        self.reboot_pigrow_btn = wx.Button(self, label='reboot pigrow', pos=(10, 130), size=(175, 30))
        self.reboot_pigrow_btn.Bind(wx.EVT_BUTTON, self.reboot_pigrow_click)
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号