in reply to perlTk Type Tutor - useful for learning a DVORAK keyboard layout
Second, the switching of the keyboard didn't work because your SwitchLayout function takes a HoH as argument, while your menu-commands only supplies a single hash. It works like a charm if you would change lines 305/306 to:
(Yes, I misabused the global $a for this purpose ;-)$f->command(-label=>'QWERTY', -command=>[\&SwitchLayout, $a=>\%QWERTY] +); $f->command(-label=>'DVORAK', -command => [\&SwitchLayout, $a=>\%DVORA +K]);
Hope it helps,
-- JaWi
"A chicken is an egg's way of producing more eggs."
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Re: perlTk Type Tutor - useful for learning a DVORAK keyboard layout
by PodMaster (Abbot) on Jan 26, 2003 at 13:46 UTC |