Re: [Tutor] problems using a listbox

2017-10-17 Thread Chris Roy-Smith
On 17/10/17 20:13, Peter Otten wrote: #!/usr/bin/python3 #test listbox from tkinter import * class Dialog(Frame): def __init__(self, master): Frame.__init__(self, master) self.list = Listbox(self, selectmode=EXTENDED) self.list.pack(fill=BOTH, expand=1)

Re: [Tutor] problems using a listbox

2017-10-17 Thread Alan Gauld via Tutor
On 17/10/17 07:25, Chris Roy-Smith wrote: > I am trying to learn how to use a tkinter listbox. When I execute my > experimental code, an odd index is printed immediately (output below > code), index looks wrong (shouldn’t it be an integer). You pass in the widget so thats what gets printed (th

Re: [Tutor] problems using a listbox

2017-10-17 Thread Peter Otten
Chris Roy-Smith wrote: > OS: Linux Chris-X451MA 4.4.0-97-generic #120-Ubuntu SMP Tue Sep 19 > 17:28:18 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux > > Python 3.5.2 (default, Sep 14 2017, 22:51:06) > > I am trying to learn how to use a tkinter listbox. When I execute my > experimental code, an odd

[Tutor] problems using a listbox

2017-10-17 Thread Chris Roy-Smith
Hi, OS: Linux Chris-X451MA 4.4.0-97-generic #120-Ubuntu SMP Tue Sep 19 17:28:18 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux Python 3.5.2 (default, Sep 14 2017, 22:51:06) I am trying to learn how to use a tkinter listbox. When I execute my experimental code, an odd index is printed immediately (o