Re: [Tkinter-discuss] more control over truncating long strings in Labels?

2005-04-27 Thread Jeff Epler
This code is not well tested, but I'll share it anyway. You must create the label widget, and a variable to hold the string. Then you call make_ellip with the widget, the variable, and the side---"left", "right", or "center". "left" gives abbreviated text like "And no...", and so forth. On at le

Re: [Tkinter-discuss] more control over truncating long strings in Labels?

2005-04-27 Thread Michael Lange
On Wed, 27 Apr 2005 11:33:49 -0700 "Russell E. Owen" <[EMAIL PROTECTED]> wrote: > I'd was wondering if there was some fairly easy way to display text in a > Label such that it is is anchored on the west (short strings are against > the left edge), but too-long strings are truncated on the left.

[Tkinter-discuss] more control over truncating long strings in Labels?

2005-04-27 Thread Russell E. Owen
I'd was wondering if there was some fairly easy way to display text in a Label such that it is is anchored on the west (short strings are against the left edge), but too-long strings are truncated on the left. This would be useful for displaying very long path names. It might be even nicer to t

[Tkinter-discuss] Re: Hooking into custom Tcl/Tk Widgets

2005-04-27 Thread Fredrik Lundh
David King wrote: I am looking to make a custom Tcl/Tk widget available in Tkinter. It is written in C/C++ and does graphics rendering of some custom astronomical data formats. It has previously been driven stand-alone from a C++ program, without benefit of python (i.e., the Tcl/Tk interpreter

[Tkinter-discuss] Hooking into custom Tcl/Tk Widgets

2005-04-27 Thread David King
Hi Folks: I am looking to make a custom Tcl/Tk widget available in Tkinter. It is written in C/C++ and does graphics rendering of some custom astronomical data formats. It has previously been driven stand-alone from a C++ program, without benefit of python (i.e., the Tcl/Tk interpreter and its