Enhanced Listbox

H J van Rooyen mail at microcorp.co.za
Sat Aug 5 05:53:35 EDT 2006


 "drodrig" <drodrig at magicbrain.com> wrote:

(top posting fixed)


| H J van Rooyen wrote:
| > "drodrig" <drodrig at magicbrain.com>
| >
| >
| > | My apologies if this question has been asked an answered.
| > |
| > | I am looking for a tkinter grid control or enhanced listbox that can
| > | act as a "receipt" for a cash register program. I would like the widget
| > | to contain a visible grid of columns and rows. I've tried binding
| > | multiple listboxes to a scrollbar. This works OK, but I am missing the
| > | vertical lines dividing each row and I can't seem to figure out how to
| > | set the height (or vertical margin) of each row in the listbox(es). If
| > | I could do these things my current implementation might be OK. Or, I
| > | could just use a pre-packaged solution, if I coud find one.
| > |
| > | Any help is appreciated.
| > |
| >  - you could try making your columns different background colours if this is
| > acceptable...
| >
| > - Hendrik
|
| Thanks for your reply. I have done this. It certainly helps. My biggest
| concern right now is the vertical space between the fonts in each row.
| I need more than the default and I'm not sure on how to go about
| achieving this. Also, the vertical lines between each row would be
| nice.
|
I also don't know how to do this - as far as I know the height and width
parameters of the listbox widget refer to number of lines and characters
respectively - I cant see anything that gives you control over the height of a
line - but maybe I am looking in the wrong place - I know that if you use a
bigger font the individual lines get bigger - but it looks proportional to me.

- Hendrik




More information about the Python-list mailing list