Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Re^3: how to change the font of a perl tk gui

by stefbv (Curate)
on Aug 16, 2013 at 14:30 UTC ( #1049745=note: print w/replies, xml ) Need Help??


in reply to Re^2: how to change the font of a perl tk gui
in thread how to change the font of a perl tk gui

See RefontTree.
  • Comment on Re^3: how to change the font of a perl tk gui

Replies are listed 'Best First'.
Re^4: how to change the font of a perl tk gui
by ghosh123 (Monk) on Aug 17, 2013 at 15:00 UTC

    Hi
    The RefontTree is working fine. I have included the following piece of code ,to the above long code I have given before, in between the 'Select File' Label and BrowseEntry packing. The fonts are reducing when I select a small font but the overall Tk Mainwindow size is not reducing with reduction of the font.
    This is as opposed to the RefontTree link above given by you. In that link, the gui size is also increasing and reducing according to the font chosen.
    Following is the code

    my $menubutton = $userframe->Menubutton(-text=>"font" , )->pack(-side= +>'left'); #$menubutton->cascade(-label => "preference",-command => sub{ pref{}}) +; $menubutton->command(-label => "change", -command => sub {print "comma +nd font \n"; my $font = $mw->FontDialog->Show; if (defined $font) { $mw->RefontTree(-font => $font); } });
        It worked ..thanks

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others contemplating the Monastery: (2)
As of 2021-08-02 00:38 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My primary motivation for participating at PerlMonks is: (Choices in context)








    Results (16 votes). Check out past polls.

    Notices?