Re: SyntaxError: positional argument follows keyword argument

2019-06-07 Thread Rich Shepard
On Fri, 7 Jun 2019, Terry Reedy wrote: An additional error is the missing ()s. This would make input_var refer to the class, not an instance thereof. Oops! I completely missed that. Thanks, Terry, Rich -- https://mail.python.org/mailman/listinfo/python-list

Re: SyntaxError: positional argument follows keyword argument

2019-06-07 Thread Terry Reedy
On 6/7/2019 2:43 PM, Rich Shepard wrote: I understand positional and keyword arguments and the syntax for the ttk.Checkbutton as described on . $ python3 geochem.py   File "geochem.py", line 60     ttk.Checkbutton(text='Censored?', variable

Re: SyntaxError: positional argument follows keyword argument

2019-06-07 Thread Rich Shepard
On Sat, 8 Jun 2019, Chris Angelico wrote: Right, but the problem was actually in the LabelInput call, not the Checkbutton itself. ChrisA, That's what I found and fixed. Now working on a slightly different issue with a ttk.Combobox. Carpe weekend, Rich -- https://mail.python.org/mailman/list

Re: Python3-3.7.3: cannot run pdb

2019-06-07 Thread Terry Reedy
On 6/7/2019 12:26 PM, Rich Shepard wrote: Running python3-3.7.3 on Slackware-14.2. $ python3 geochem.py   File "geochem.py", line 35     boxchoices = ttk.Combobox(self, textvariable=med, ^ SyntaxError: invalid syntax An addendum to previous comments solving the issue. In 3.8

Re: No option available for saving files

2019-06-07 Thread Terry Reedy
On 6/7/2019 10:51 AM, Calvin Spealman wrote: The python shell is good for experimenting and testing some things out, but you are right it isn't for writing programs you actually re-use and run later. You can use any text editor you want, Visual Studio Code and Sublime Text are both popular, but a

Re: SyntaxError: positional argument follows keyword argument

2019-06-07 Thread Chris Angelico
On Sat, Jun 8, 2019 at 6:01 AM Rich Shepard wrote: > > On Sat, 8 Jun 2019, Chris Angelico wrote: > > > General principle: When you see a syntax error, look *before* that point > > (reading top-to-bottom, left-to-right, same as the parser does). Often, > > the problem is prior to the point where it

Re: SyntaxError: positional argument follows keyword argument

2019-06-07 Thread Rich Shepard
On Sat, 8 Jun 2019, Chris Angelico wrote: General principle: When you see a syntax error, look *before* that point (reading top-to-bottom, left-to-right, same as the parser does). Often, the problem is prior to the point where it was actually discovered. Chris, This is why I commented out all

Re: SyntaxError: positional argument follows keyword argument

2019-06-07 Thread Rich Shepard
On Fri, 7 Jun 2019, Rhodri James wrote: Now we can see that Python isn't complaining about the arguments to tth.Checkbutton. The call to ttk.Checkbutton() is itself a positional argument in the call to LabelInput, coming after the keyword argument "input_var = tk.IntVar". Thank you Rhodri. Mor

Re: SyntaxError: positional argument follows keyword argument

2019-06-07 Thread Rich Shepard
On Fri, 7 Jun 2019, Alexandre Brault wrote: The positional argument in question is not one you passed to the ttk.Checkbutton call, but the ttk.Checkbutton itself that you're passing to LabelInput as a positional argument after the input_var keyword argument Alex, Got it, thanks. Now to figure

Re: SyntaxError: positional argument follows keyword argument

2019-06-07 Thread Chris Angelico
On Sat, Jun 8, 2019 at 4:45 AM Rich Shepard wrote: > I've provided only keyword arguments to the call to the ttk.Checkbutton > widget and am not seeing the positional argument that follows. Please show > me what I miss seeing here: > > self.inputs['nondetect'] = LabelInput( > self, 'C

Re: SyntaxError: positional argument follows keyword argument

2019-06-07 Thread Alexandre Brault
On 2019-06-07 2:43 p.m., Rich Shepard wrote: > I understand positional and keyword arguments and the syntax for the > ttk.Checkbutton as described on > . > > $ python3 geochem.py >   File "geochem.py", line 60 >     ttk.Checkbutton(text='Censore

Re: SyntaxError: positional argument follows keyword argument

2019-06-07 Thread Rhodri James
On 07/06/2019 19:43, Rich Shepard wrote: I understand positional and keyword arguments and the syntax for the ttk.Checkbutton as described on . $ python3 geochem.py   File "geochem.py", line 60     ttk.Checkbutton(text='Censored?', variable

SyntaxError: positional argument follows keyword argument

2019-06-07 Thread Rich Shepard
I understand positional and keyword arguments and the syntax for the ttk.Checkbutton as described on . $ python3 geochem.py File "geochem.py", line 60 ttk.Checkbutton(text='Censored?', variable=input_var), ^ SyntaxError: positional a

Re: Python3-3.7.3: cannot run pdb

2019-06-07 Thread Rich Shepard
On Fri, 7 Jun 2019, Danilo Coccia wrote:     self.inputs['medium'] = LabelInput(     self, 'Medium',     med = tk.StringVar() ^^^ Missing a comma here! Thanks, Danilo! When we write the code we too often see

Re: Python3-3.7.3: cannot run pdb

2019-06-07 Thread MRAB
On 2019-06-07 18:31, Rich Shepard wrote: On Fri, 7 Jun 2019, MRAB wrote: It's possible that the error is actually on the previous line and that it thinks that what's on line 35 is a continuation of what's on line 34, but it isn't. MRAB, If that's the case I'm missing seeing the error. Here a

Re: Python3-3.7.3: cannot run pdb

2019-06-07 Thread Rich Shepard
On Fri, 7 Jun 2019, Rhodri James wrote: The syntax error causes Python to halt before it has finished compiling your program into byte code. There is nothing to run pdb on! Okay. That certainly makes sense. It's been a very long time since I did any Python coding. Regards, Rich -- https://ma

Re: Python3-3.7.3: cannot run pdb

2019-06-07 Thread Danilo Coccia
Il 07/06/2019 19:31, Rich Shepard ha scritto: > On Fri, 7 Jun 2019, MRAB wrote: > >> It's possible that the error is actually on the previous line and that it >> thinks that what's on line 35 is a continuation of what's on line 34, but >> it isn't. > > MRAB, > > If that's the case I'm missing se

Re: Python3-3.7.3: cannot run pdb

2019-06-07 Thread Rhodri James
On 07/06/2019 18:28, Rich Shepard wrote: On Fri, 7 Jun 2019, Peter Otten wrote: You need to fix all syntax errors before you can run the script, with or without pdb. Peter, I thought the debugger would show me the location of the syntax error. The syntax error causes Python to halt before

Re: Python3-3.7.3: cannot run pdb

2019-06-07 Thread Rich Shepard
On Fri, 7 Jun 2019, MRAB wrote: It's possible that the error is actually on the previous line and that it thinks that what's on line 35 is a continuation of what's on line 34, but it isn't. MRAB, If that's the case I'm missing seeing the error. Here are the lines prior to and including line 3

Re: Python3-3.7.3: cannot run pdb

2019-06-07 Thread Rich Shepard
On Fri, 7 Jun 2019, Peter Otten wrote: You need to fix all syntax errors before you can run the script, with or without pdb. Peter, I thought the debugger would show me the location of the syntax error. The syntax error you are seeing is typically caused by unclosed parentheses in a line pr

Re: Python3-3.7.3: cannot run pdb

2019-06-07 Thread MRAB
On 2019-06-07 17:26, Rich Shepard wrote: Running python3-3.7.3 on Slackware-14.2. I'm trying to debug a module using pdb but failing with all attempts. For example, using breakpoint() at the line where I want to stop the running module and examine each line's execution, the program runs to compl

Re: Python3-3.7.3: cannot run pdb

2019-06-07 Thread Peter Otten
Rich Shepard wrote: > Running python3-3.7.3 on Slackware-14.2. > > I'm trying to debug a module using pdb but failing with all attempts. For > example, using breakpoint() at the line where I want to stop the running > module and examine each line's execution, the program runs to completion > and

Python3-3.7.3: cannot run pdb

2019-06-07 Thread Rich Shepard
Running python3-3.7.3 on Slackware-14.2. I'm trying to debug a module using pdb but failing with all attempts. For example, using breakpoint() at the line where I want to stop the running module and examine each line's execution, the program runs to completion and shows there's a syntax error: $

Re: No option available for saving files

2019-06-07 Thread Calvin Spealman
The python shell is good for experimenting and testing some things out, but you are right it isn't for writing programs you actually re-use and run later. You can use any text editor you want, Visual Studio Code and Sublime Text are both popular, but anything will do at all. There is also a simple

No option available for saving files

2019-06-07 Thread Shreya Joshi
Hi ma’am/sir, I’ve started using python Shell 3.6.8-32 bit executable installer on windows OS. But there is no option to save or open a new file. This gives an output after every line. But, I want to work on longer codes to execute programs. Am I using the right interface? Please help. Here is

it is not working .....how to unstalll it

2019-06-07 Thread nidhi singh
I’m protected online with Avast Free Antivirus. Get it here — it’s free forever.