Re: ttk::label and setting a specific haeight in lines...
- From: Robert Joy <robert@xxxxxxxxx>
- Date: Thu, 31 Aug 2006 09:36:00 -0700
George Petasis wrote:
Hi all,
I am using a ttk::label to display a multiline message.
I have set a correct wrapping length, so the message is
correctly wrapped. However, the problem I am facing is that
the label adjusts its height according to what gets shown.
If 3 lines are shown, the label expands, if 1 line is shown
the label shrinks. And as I am using the label for
displaying progress messages (which change all the time)
the whole toplevel changes constantly in height.
Is there a way to inpose a minimum height of 3 lines in the ttk::label
widget? The ttk::label does not seem to have a -heigh option.
George
There's a couple things you could do:
1. Use "wm minsize <pathname> <width> <height>" to set the overall minimum size of your window.
2. Use a text widget for this function. It's a bit more effort to manage but, with scrollbars, it would simply change the size of the scrollbar and not the window.
Robert Joy
.
- References:
- ttk::label and setting a specific haeight in lines...
- From: George Petasis
- ttk::label and setting a specific haeight in lines...
- Prev by Date: Re: Loading large data sets
- Next by Date: Re: Embedding Tk in an MFC application
- Previous by thread: ttk::label and setting a specific haeight in lines...
- Next by thread: Creating nested safe interpreters and load Tk into it
- Index(es):
Relevant Pages
|