Re: Tkinter Listbox string formatting question - how to kill a dancing snake ?



Hendrik van Rooyen wrote:

Is there a way to format this so it will line up with *any* font ?

I would prefer not to give up and use a fixed width font - it looks so
teletypish...

sounds like contradicting requirements to me.

instead of trying to force the listbox to behave like a multicolumn widget, maybe you could switch to another widget? some alternatives include

a Text widget (you have to roll your own selection logic)
bwidgets multicolumn ListBox:
http://tkinter.unpythonic.net/bwidget/
tktable:
http://tktable.sourceforge.net/
something based on the wck (that's what I'd would use myself):
http://effbot.org/zone/wck-4.htm
and perhaps there's something in Pmw:
http://pmw.sourceforge.net
</F>

.



Relevant Pages

  • Re: change font in the ctext widget
    ... > wiki that it's built on top of the standard Tk text widget. ... I had a general font problem with the entire ased application on my Debian ... I found some option add statements on wiki that changed the menu fonts ...
    (comp.lang.tcl)
  • Looking for tk internals information
    ... I've a developer who wants to be able to locate what font is being used ... He has a widget into which he inserts a stream of text from a file. ... there will be various unicode characters. ... User A runs the app, and sees the document just fine. ...
    (comp.lang.tcl)
  • Re: "booster-label" - why does it work such way? (8.4.12 on Debian Etch)
    ... perfectly valid way to achieve the desired behaviour. ... A widget has been created. ... Immediately then a default font is loaded "just in case". ... possibly breaking those scripts. ...
    (comp.lang.tcl)
  • Pmw.Balloon under Windows
    ... I have developed a Tkinter software using Pmw. ... However, when I tried it under Windows, it worked also fine but it spit ... (not from Quit in the Menu) ... I change the program to quit using widget quit() method. ...
    (comp.lang.python)
  • Re: ttk themes ... once more into the breach ...
    ... is based on the class name, which you can get with [winfo class $widget]. ... set ret [$wdg cget -style] ... In a fortunate twist of fate, [font actual] returns a list in exactly this format. ...
    (comp.lang.tcl)