Enhanced Listbox

D

drodrig

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.
 
H

H J van Rooyen

"drodrig" <[email protected]>


| 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
 
D

drodrig

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.
 
H

H J van Rooyen

(top posting fixed)


| H J van Rooyen wrote:
| > "drodrig" <[email protected]>
| >
| >
| > | 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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,744
Messages
2,569,484
Members
44,903
Latest member
orderPeak8CBDGummies

Latest Threads

Top