Message269286
| Author |
upendra-k14 |
| Recipients |
dstufft, lorenzogotuned, ncoghlan, ned.deily, rhettinger, terry.reedy, upendra-k14 |
| Date |
2016年06月26日.13:44:25 |
| SpamBayes Score |
-1.0 |
| Marked as misclassified |
Yes |
| Message-id |
<1466948665.42.0.88600526473.issue27051@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
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) |
|