Re: New to Tkinter GUI building



Adam wrote:
<snip>
I think my main questions are:
1. How can I get the Window to be sized the way I want it?
2. How can I get the Scrollbars to fill the side of the text box
instead of being small? (like .pack(fill= tk.Y)

<snip>

I have only posted the code relevant to the GUI.

TIA
Adam


To size the window use Tk's geometry method

self.top.geometry("%dx%d%+d%+d" % (800, 600, 0, 0)) # (width, height, x, y)

For the scrollbar to fill vertically, use the sticky grid option.

self.scrlr1.grid(row=0, column=1, sticky=tk.N + tk.S)

Hope this helps.

Adonis
.



Relevant Pages

  • Re: [vim] fullscreen (Was: [gvim] colorschemes)
    ... [snip for space, been there, done that] ... Use command:WinFullScreen again (or move to another window or tab) ... To edit _vimrc I would right click on ohmster and then open ... But that's opening with vim, ...
    (comp.editors)
  • Re: new macbook- 1 week (plus a couple days) followup
    ... any numbers printed on the keyboard. ... If you want the window to stay the same size, ... lock icon in the bottom left when the window is the size you want. ...
    (comp.sys.mac.advocacy)
  • Resizing window with Jslider, JScrollPane, JPanel and BufferedImage
    ... I have a subclass of JPanel added to the ... and if I size the window smaller than ... the image I get scrollbars. ... private ImagePanel imagePanel; ...
    (comp.lang.java.gui)
  • RE: How to use UXTHEME.LIB
    ... I have subclassed the CView descendent window which is pane 1 of the ... and whose scrollbars do not want to paint with themes. ... thus thought subclassing it would be my way out. ... g_xpStyle.GetThemeBackgroundContentRect(_hTheme, hdc, part,0, ...
    (microsoft.public.vc.mfc)
  • Re: using scrollbars in windows
    ... can anyone tell me how to embed scrollbars in a window. ... with widgets but i'm not able to use it with windows. ... You can create one yourself by starting with a canvas, ...
    (comp.lang.tcl)