Tkinter Button Command Taking Only Newest Reference In Callback Parameter

2019-07-07 Thread Abdur-Rahmaan Janhangeer
Greetings, I'm doing this project: https://github.com/Abdur-rahmaanJ/cmdlaunch/blob/master/cmdlaunch/cmdlaunch.py Everything works fine, except for one thing. On line 60, the button is taking an object in it's command parameter If you run the file, you'll see that all the different names are w

Re: Images on Dynamically Generated Buttons Glitch

2019-07-07 Thread Abdur-Rahmaan Janhangeer
Did it but that's €=€$/€*#£4×53@ Abdur-Rahmaan Janhangeer Mauritius -- https://mail.python.org/mailman/listinfo/python-list

Re: Images on Dynamically Generated Buttons Glitch

2019-07-07 Thread MRAB
On 2019-07-08 03:05, Abdur-Rahmaan Janhangeer wrote: You mean we should create the image variables aside like one for each button? XD. Thanks! You need to ensure that there's a reference somewhere to every image that you're displaying, whether it's on a button or some other widget, because tk

Re: Images on Dynamically Generated Buttons Glitch

2019-07-07 Thread Abdur-Rahmaan Janhangeer
You mean we should create the image variables aside like one for each button? XD. Thanks! Abdur-Rahmaan Janhangeer Mauritius -- https://mail.python.org/mailman/listinfo/python-list

Re: Images on Dynamically Generated Buttons Glitch

2019-07-07 Thread MRAB
On 2019-07-07 19:28, Abdur-Rahmaan Janhangeer wrote: Greetings, i have this snippet: --- import json import os from tkinter import * from tkinter.ttk import * root = Tk() jload = json.load buttons = list() programs = os.listdir('programs') for i, program in enumerate(programs): jsonpath = '

Images on Dynamically Generated Buttons Glitch

2019-07-07 Thread Abdur-Rahmaan Janhangeer
Greetings, i have this snippet: --- import json import os from tkinter import * from tkinter.ttk import * root = Tk() jload = json.load buttons = list() programs = os.listdir('programs') for i, program in enumerate(programs): jsonpath = 'programs/{}/cmdlaunch.json'.format(program) info = j

Re: how to setup for localhost:8000

2019-07-07 Thread Alister via Python-list
On Sun, 07 Jul 2019 16:57:12 +, nabru wrote: > jaymoyer44 [jaymoye...@gmail.com] wrote: > >> On Thursday, April 14, 2016 at 1:47:03 PM UTC-4, wrh...@gmail.com >> wrote: >>> Hi, >>> >>> I am working on window 7 and Python 3.5 to setup a localhost:8000 but >>> it did not get through as shown b

Re: how to setup for localhost:8000

2019-07-07 Thread nabru
jaymoyer44 [jaymoye...@gmail.com] wrote: > On Thursday, April 14, 2016 at 1:47:03 PM UTC-4, wrh...@gmail.com wrote: >> Hi, >> >> I am working on window 7 and Python 3.5 to setup a localhost:8000 but >> it did not get through as shown below: >> > python -m http.server >> Serving HTTP on 0.0.0.0 po

Re: What's wrong on using Popen's communicate method?

2019-07-07 Thread jfong
eryk sun於 2019年7月7日星期日 UTC+8下午3時51分57秒寫道: > On 7/6/19, jf...@ms4.hinet.net wrote: > > > > I turn off the anti-virus and tried v3.6.8, get the same result. Usually the > > anti-virus program will warn me if something was blocked. > > In case the executable is corrupt, clear your browser cache and

Re: how to setup for localhost:8000

2019-07-07 Thread jaymoyer44
On Thursday, April 14, 2016 at 1:47:03 PM UTC-4, wrh...@gmail.com wrote: > Hi, > > I am working on window 7 and Python 3.5 to setup a localhost:8000 but it did > not get through as shown below: > > python -m http.server > Serving HTTP on 0.0.0.0 port 8000 ... > > But it did not show the results.

Re: how to setup for localhost:8000

2019-07-07 Thread jaymoyer44
On Thursday, April 14, 2016 at 1:47:03 PM UTC-4, wrh...@gmail.com wrote: > Hi, > > I am working on window 7 and Python 3.5 to setup a localhost:8000 but it did > not get through as shown below: > > python -m http.server > Serving HTTP on 0.0.0.0 port 8000 ... > > But it did not show the results.

Re: What's wrong on using Popen's communicate method?

2019-07-07 Thread jfong
eryk sun於 2019年7月7日星期日 UTC+8下午3時51分57秒寫道: > On 7/6/19, jf...@ms4.hinet.net wrote: > > > > I turn off the anti-virus and tried v3.6.8, get the same result. Usually the > > anti-virus program will warn me if something was blocked. > > In case the executable is corrupt, clear your browser cache and

Re: What's wrong on using Popen's communicate method?

2019-07-07 Thread eryk sun
On 7/6/19, jf...@ms4.hinet.net wrote: > > I turn off the anti-virus and tried v3.6.8, get the same result. Usually the > anti-virus program will warn me if something was blocked. In case the executable is corrupt, clear your browser cache and download the 32-bit version again: https://www.python