Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

Re^4: Perl Tk: How Can I get the MainWindow Configuration?

by ungalnanban (Pilgrim)
on Feb 27, 2010 at 04:32 UTC ( #825633=note: print w/ replies, xml ) Need Help??


in reply to Re^3: Perl Tk: How Can I get the MainWindow Configuration?
in thread Perl Tk: How Can I get the MainWindow Configuration?

I didn't specify the minimum size for the main window, you can resize the window. After resizing I want the current size of the Main Window.

I will give the file name as argument. So the Main Window title should be the name of the file.
Then I want the current title of the Main window.


Comment on Re^4: Perl Tk: How Can I get the MainWindow Configuration?
Re^5: Perl Tk: How Can I get the MainWindow Configuration?
by Marshall (Prior) on Feb 28, 2010 at 09:14 UTC
    I am having a hard time understanding what you are trying to do. It would be helpful if you could post some simple code to demonstrate what you have and how it fails to do what you want.

    I don't know a way of forcing a MainWindow to display less than the available widgets. Is that what you are trying to do? And if so, then why?

    The "title bar" for the main window is normally a constant "set it once" deal and is usually the name of your application. In any event you know what that title is because you set it!

    The normal way to do what it sounds like you want is to make a new top level window with a new title for that window and probably a label for the file name that you have just opened.

    The user and/or Tk re-sizes windows, not your program!

    The Tk minimum main window size as you have already seen is in points, not lines of text or widgets, etc. There is not an easy way to figure out how that number of points relates to what is displayed upon the screen.

    You can ask questions like is line #45 of this text widget visible on the screen or not? There are methods to pack and re-pack widgets and re-display the screen.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://825633]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others imbibing at the Monastery: (4)
As of 2014-09-24 02:52 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How do you remember the number of days in each month?











    Results (244 votes), past polls