gui.py 文件源码

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

项目:stopgo 作者: notklaatu 项目源码 文件源码
def WorkSpace(self,e ):
        '''
        Load in a project.
        '''

        logging.exception(self.clargs)
        dbfile = self.clargs['project']

        if not os.path.isfile(dbfile):
            dlg = wx.MessageDialog(self, 'Project not found. Browse for the file?', 
                '',wx.YES_NO | wx.YES_DEFAULT | wx.CANCEL | wx.ICON_QUESTION)

            val = dlg.ShowModal()

            if val == wx.ID_YES:
                self.OpenFile(e,False)

            elif val == wx.ID_CANCEL:
                dlg.Destroy()
        else:
            self.OpenFile(False,dbfile)
            self.bplay.SetBitmapLabel(self.bplayicon)
            self.panel2.Refresh()

        #update timeline view
        self.Layout()
        self.panel3.SetFocus()
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号