Hi Joel,
Welcome to the Monastery. Hope you stick around for a while. A few comments.
1) add use strict and use warnings. It is just good practice to help keep your errors to a minimum (especially in Tk.
2) You can post even large bits of code, read the
FAQ on posting and use the READMORE and CODE tags.
3) I would make the sub "scientific" create a new FRAME:
$scientific_frame =$main->Frame(-background=>'tan',
-foreground=>'black',
-relief=>'groove',
-borderwidth=>3
)->pack(-side=>'bottom',-fill=>'both');
Then, modify (using "configure") The original menu option to call a different sub which does
$scientific_frame->destroy();
then reconfigure the menu to call the original subroutine again if they want to turn scientific back on.
Have fun in the monastery!
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
| |
For: |
|
Use: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.