Re: tkinter: widget to display set returned from database table

2019-06-19 Thread Terry Reedy
On 6/19/2019 6:50 PM, Rich Shepard wrote: In a database application I want to design a view for the table rows returned from a select statement. Tkinter has a listbox widget and web searches suggest that multicolumn listboxes are best based on ttk.Treeview Right. widgets, but my understanding

Re: tkinter: widget to display set returned from database table

2019-06-19 Thread MRAB
On 2019-06-19 23:50, Rich Shepard wrote: In a database application I want to design a view for the table rows returned from a select statement. Tkinter has a listbox widget and web searches suggest that multicolumn listboxes are best based on ttk.Treeview widgets, but my understanding of a treevi

tkinter: widget to display set returned from database table

2019-06-19 Thread Rich Shepard
In a database application I want to design a view for the table rows returned from a select statement. Tkinter has a listbox widget and web searches suggest that multicolumn listboxes are best based on ttk.Treeview widgets, but my understanding of a treeview is to display a hierarchical set rather

Re: s.sendall(filename + "\r\n") TypeError: a bytes-like object is required, not 'str'

2019-06-19 Thread Chris Angelico
On Thu, Jun 20, 2019 at 12:31 AM vakul bhatt wrote: > > Hi Team, > > i m new to python, running below program, getting error > Python Version : 3.7 32bit for windows > Program: > > #simple Goopher client > > import socket, sys > > port = 70 > host = sys.argv[1] > filen

s.sendall(filename + "\r\n") TypeError: a bytes-like object is required, not 'str'

2019-06-19 Thread vakul bhatt
Hi Team, i m new to python, running below program, getting error Python Version : 3.7 32bit for windows Program: #simple Goopher client import socket, sys port = 70 host = sys.argv[1] filename = sys.argv[2] s = socket.socket(socket.AF_INET, socket.SOCK_STREAM) s.con