Пример #1
0
 def close_handler(self, e=None):
     if sys.platform == 'win32':
         '''
         # enable Windows console(cmd.exe) quick edit mode
         new_mode = old_mode | quick_edit
         win32.SetConsoleMode(handle, new_mode)
         '''
         # respect individual preference
         win32.SetConsoleMode(handle, old_mode)
     Status.running = False
     self.Hide()
     self.Destroy()
Пример #2
0
            else:
                self.word_queue.put(word)

    def close_handler(self, e=None):
        if sys.platform == 'win32':
            '''
            # enable Windows console(cmd.exe) quick edit mode
            new_mode = old_mode | quick_edit
            win32.SetConsoleMode(handle, new_mode)
            '''
            # respect individual preference
            win32.SetConsoleMode(handle, old_mode)
        Status.running = False
        self.Hide()
        self.Destroy()


if __name__ == '__main__':
    if sys.platform == 'win32':
        # disable Windows console(cmd.exe) quick edit mode
        new_mode = old_mode & (~quick_edit)
        win32.SetConsoleMode(handle, new_mode)
    material_queue = queue.Queue()
    word_queue = queue.Queue()
    product_queue = queue.Queue()
    WordGetter(material_queue).start()
    Fetcher(word_queue, product_queue).start()
    app = wx.App()
    GUI(material_queue, word_queue, product_queue)
    app.MainLoop()