[issue27051] Create PIP gui

Upendra Kumar report at bugs.python.org
Sun Jun 26 09:44:25 EDT 2016


Upendra Kumar added the comment:

Refer to : msg269285

This is the code :

...............

from pip_tkinter.utils import pip_install_from_PyPI

        curr_item = self.multi_items_list.scroll_tree.focus()
        item_dict = self.multi_items_list.scroll_tree.item(curr_item)
        selected_module = item_dict['values'][0]
        self.controller.debug_bar.config(
            text='Installing package {}...Please wait'.format(selected_module))

        self.install_queue = queue.Queue()
        self.install_thread = threading.Thread(
            target=pip_install_from_PyPI,
            kwargs={
                'package_args':selected_module,
                'thread_queue':self.install_queue})
        self.install_thread.start()
        self.after(100, self.check_install_queue)

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue27051>
_______________________________________


More information about the Python-bugs-list mailing list