Re: tkinter global variable

2020-11-13 Thread ChalaoAdda
On Fri, 13 Nov 2020 18:40:53 +0100, David Kolovratník wrote: > On Fri, Nov 13, 2020 at 05:12:10PM +, ChalaoAdda wrote: >> On Fri, 13 Nov 2020 12:04:53 -0500, Richard Damon wrote: >> >> > On 11/13/20 11:42 AM, ChalaoAdda wrote: >> >> On Fri, 13 Nov 2020 16:04:03 +, Stefan Ram wrote: >> >>

Re: Unable to set up Python correctly

2020-11-13 Thread MRAB
On 2020-11-13 05:28, Charles Okorobo wrote: I have a problem going to one(1) week now. Our instructor told us that we can check if our Python is well installed or well set up correctly by typing Control-Shift- P on Windows OS while in VS Code Editor. We cut out the path enclosed within the Quotat

Re: tkinter global variable

2020-11-13 Thread Cameron Simpson
On 13Nov2020 12:48, Dennis Lee Bieber wrote: >On Fri, 13 Nov 2020 18:40:53 +0100, David Kolovratník > declaimed the following: >>def on_printfilename(): >>global pic >>try: >>print( f"C: {pic}" ) >>except NameError: >>print( f"C! pic not set yet" ) >> > > Just an

Re: How to start using python

2020-11-13 Thread Cameron Simpson
On 13Nov2020 15:53, Anthony Steventon wrote: >Thanks for the help from everyone. >Operating system is windows 7. Download installation file is >python-3.7.9-amd64.exe downloaded from python.org. No problems when I run it, >installation successful. >Have tried 2 + 3 with a result of 5 at the comm

Re: How to start using python

2020-11-13 Thread Anthony Steventon
Thanks for the help from everyone. Operating system is windows 7. Download installation file is python-3.7.9-amd64.exe downloaded from python.org. No problems when I run it, installation successful. Have tried 2 + 3 with a result of 5 at the command prompt. whatever I put in after that I get a m

Unable to set up Python correctly

2020-11-13 Thread Charles Okorobo
I have a problem going to one(1) week now. Our instructor told us that we can check if our Python is well installed or well set up correctly by typing Control-Shift- P on Windows OS while in VS Code Editor. We cut out the path enclosed within the Quotation Marks, then we type "Select Interpreter" a

Re: How to start using python

2020-11-13 Thread Bob Gailer
I am not feeling well these days. It is sometimes difficult for me to respond to others the way I would like to. This is a long reply; in my humble opinion is important to read all of it 1-whenever you respond to an email from one of us please include the help list what you can do by reply-all si

Re: tkinter global variable

2020-11-13 Thread Richard Damon
On 11/13/20 12:12 PM, ChalaoAdda wrote: > On Fri, 13 Nov 2020 12:04:53 -0500, Richard Damon wrote: > >> On 11/13/20 11:42 AM, ChalaoAdda wrote: >>> On Fri, 13 Nov 2020 16:04:03 +, Stefan Ram wrote: >>> ChalaoAdda writes: > On Fri, 13 Nov 2020 15:41:20 +, Stefan Ram wrote: >> C

Re: tkinter global variable

2020-11-13 Thread David Kolovratník
On Fri, Nov 13, 2020 at 05:12:10PM +, ChalaoAdda wrote: > On Fri, 13 Nov 2020 12:04:53 -0500, Richard Damon wrote: > > > On 11/13/20 11:42 AM, ChalaoAdda wrote: > >> On Fri, 13 Nov 2020 16:04:03 +, Stefan Ram wrote: > >> > >>> ChalaoAdda writes: > On Fri, 13 Nov 2020 15:41:20 +,

Re: tkinter global variable

2020-11-13 Thread ChalaoAdda
On Fri, 13 Nov 2020 12:04:53 -0500, Richard Damon wrote: > On 11/13/20 11:42 AM, ChalaoAdda wrote: >> On Fri, 13 Nov 2020 16:04:03 +, Stefan Ram wrote: >> >>> ChalaoAdda writes: On Fri, 13 Nov 2020 15:41:20 +, Stefan Ram wrote: > ChalaoAdda writes: >> I am trying to read a f

Re: tkinter global variable

2020-11-13 Thread Richard Damon
On 11/13/20 11:42 AM, ChalaoAdda wrote: > On Fri, 13 Nov 2020 16:04:03 +, Stefan Ram wrote: > >> ChalaoAdda writes: >>> On Fri, 13 Nov 2020 15:41:20 +, Stefan Ram wrote: ChalaoAdda writes: > I am trying to read a file from askopenfilename outside the function. > I am getting

Re: tkinter global variable

2020-11-13 Thread ChalaoAdda
On Fri, 13 Nov 2020 16:04:03 +, Stefan Ram wrote: > ChalaoAdda writes: >>On Fri, 13 Nov 2020 15:41:20 +, Stefan Ram wrote: >>> ChalaoAdda writes: I am trying to read a file from askopenfilename outside the function. I am getting blank file name. What am I doing wrong? Here is my

Re: tkinter global variable

2020-11-13 Thread ChalaoAdda
On Fri, 13 Nov 2020 15:41:20 +, Stefan Ram wrote: > ChalaoAdda writes: >>I am trying to read a file from askopenfilename outside the function. I >>am getting blank file name. What am I doing wrong? Here is my code. > > It is possible that you try to read from "pic" before "on_openfile" >

tkinter global variable

2020-11-13 Thread ChalaoAdda
Hello, I am trying to read a file from askopenfilename outside the function. I am getting blank file name. What am I doing wrong? Here is my code. from tkinter import * from tkinter import filedialog def on_openfile(): global pic pic = filedialog.askopenfilename() root = Tk() menubar