osdir.com


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Python3-3.7.3: cannot run pdb


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 seeing the error. Here are the lines
> prior to
> and including line 36:
> 
> def __init__(self, parent, *args, **kwargs):
> ??????? super().__init__(parent, *args, **kwargs)
> ??????? # A dict to keep track of input widgets
> ??????? self.inputs = {}
> 
> ??????? # line 0
> ??????? self.inputs['name'] = LabelInput(
> ??????????? self, 'Site Name',
> ??????????? input_var=tk.StringVar(),
> ??????????? )
> ??????? self.inputs['name'].grid(sticky=tk.W, row=0, column=0)
> 
> ??????? self.inputs['date'] = LabelInput(
> ??????????? self, 'Sample Date',
> ??????????? input_var=tk.StringVar(),
> ??????? )
> ??????? self.inputs['date'].grid(row=0, column=1)
> 
> ??????? self.inputs['medium'] = LabelInput(
> ??????????? self, 'Medium',
> ??????????? med = tk.StringVar()
                                  ^^^
                                 Missing a comma here!

> ??????????? boxchoices = ttk.Combobox(self, textvariable=med,
> ??????????????????????????????????? values=['Storm water', 'Surface water',
> ??????????????????????????????????????????? 'Ground water', 'Sediments',
> 'Soils'])
> ??????? )
> 
> emacs shows all parentheses are paired. I hope that fresh eyeballs see what
> I keep missing.
> 
> Regards,
> 
> Rich
>