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
n(text='Censored?', variable=input_var),     ^ SyntaxError: positional argument follows keyword argument 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.i

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: 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
line 60 >     ttk.Checkbutton(text='Censored?', variable=input_var), >     ^ > SyntaxError: positional argument follows keyword argument > > I've provided only keyword arguments to the call to the ttk.Checkbutton > widget and am not seeing the positional argument that f

Re: SyntaxError: positional argument follows keyword argument

2019-06-07 Thread Rhodri James
n(text='Censored?', variable=input_var),     ^ SyntaxError: positional argument follows keyword argument 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: Conte

SyntaxError: positional argument follows keyword argument

2019-06-07 Thread Rich Shepard
^ SyntaxError: positional argument follows keyword argument 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']