I have googled to no avail, so does anyone know how I would keep a
window created by TkRoot from resizing when a user drags the border?
Sorry if it’s obvious.
From: Philliam A. [email protected]
Subject: Preventing TkRoot from resizing
Date: Sat, 30 Jan 2010 05:50:05 +0900
Message-ID:
[email protected]
I have googled to no avail, so does anyone know how I would keep a
window created by TkRoot from resizing when a user drags the border?
Sorry if it’s obvious.
Tk.root.resizable(false, false) # boolean value: (width, height)
What other methods are there for tkroot?
Thanks in advanxe
Joe
thanks - that was very helpful
Joe
What other methods are there for tkroot?
One of the great things about Ruby is how easy it is to peek behind the
curtain using ripl or irb like
C:\Users\Jon\Documents>ripl
RUBY_DESCRIPTION
=> “ruby 1.9.3dev (2011-09-17 revision 33290) [i386-mingw32]”require ‘tk’
=> trueTk.constants.sort
=> [:AUTO_PATH, :BinaryString, :Busy, :Button, :CallbackSubst, …
…and discover the methods on Tk.root like
Tk.root.methods.sort
=> [:!, :!=, :!~, :<=>, :==, :===, :=~, :Grid, :Pack, :Place, …
…or Tk.root instance variables
Tk.root.instance_variables.sort
=> [:@path]
Jon