MD5_Hash.py 文件源码

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

项目:py3_project 作者: tjy-cool 项目源码 文件源码
def setupMenuBar(self, parent):
        # ?????
        self.t1 = wx.TextCtrl(parent, size=(550, 260),
                              pos=(15, 10), style=wx.TE_MULTILINE)
        # ????
        self.find_button = wx.Button(
            parent, -1, u"??(B)...", (16, 280), (80, 30))    # size = (70,25),
        self.clear_button = wx.Button(
            parent, -1, u"??(L)", (16 + 96, 280), (80, 30))
        self.copy_button = wx.Button(
            parent, -1, u"??(C)", (16 + 96 * 2, 280), (80, 30))
        self.save_button = wx.Button(
            parent, -1, u"??(S)", (16 + 96 * 3, 280), (80, 30))
        self.stop_button = wx.Button(
            parent, -1, u"??(T)", (16 + 96 * 4, 280), (80, 30))
        # ??????
        self.version_box = wx.CheckBox(parent, -1, u"??(V)", (500, 280))
        self.time_box = wx.CheckBox(parent, -1, u"??(D)", (500, 280 + 20))
        self.md5_box = wx.CheckBox(parent, -1, u"MD5(M)", (500, 280 + 20 * 2))
        self.sha1_box = wx.CheckBox(
            parent, -1, u"SHA1(H)", (500, 280 + 20 * 3))
        self.crc32_box = wx.CheckBox(
            parent, -1, u"CRC32(R)", (500, 280 + 20 * 4))
        # ?????
        self.static1 = wx.StaticText(
            parent, -1, '??', pos=(20, 320), size=(50, 25))
        self.static2 = wx.StaticText(
            parent, -1, '??', pos=(20, 350), size=(50, 25))
        self.sigle_gauge = wx.Gauge(parent, -1, 100, (60, 320), (420, 20))
        self.totle_gauge = wx.Gauge(parent, -1, 100, (60, 350), (420, 20))
        # self.gauge.SetBezelFace(3)
        # self.gauge.SetShadowWidth(3)
        # ?????
        self.version_box.SetValue(True)
        self.time_box.SetValue(True)
        self.md5_box.SetValue(True)
        self.sha1_box.SetValue(True)
        self.crc32_box.SetValue(True)
        self.stop_button.Enable(False)

        # ????
        self.Bind(wx.EVT_CLOSE, self.closewindows)
        self.Bind(wx.EVT_BUTTON, self.find_file, self.find_button)
        self.Bind(wx.EVT_BUTTON, self.clear_text, self.clear_button)
        self.Bind(wx.EVT_BUTTON, self.copy_text, self.copy_button)
        self.Bind(wx.EVT_BUTTON, self.save_file, self.save_button)
        self.Bind(wx.EVT_BUTTON, self.stop_calc, self.stop_button)

        # self.Bind(wx.EVT_IDLE, self.onidle)
        self.file_cnt = 0
        self.deal_file_cnt = 0
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号