Python3-3.7.3: cannot run pdb
MRAB
python at mrabarnett.plus.com
Fri Jun 7 13:56:46 EDT 2019
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 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(
Rememnber that these lines are an argument list.
> self, 'Medium',
> med = tk.StringVar()
^ Missing comma.
> 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.
>
More information about the Python-list
mailing list