Re: malfunctioning keys in sun 10-key under Perl/Tk #10"Troy.A Johnson" <troy.johnson@health.state.mn.us> wrote:
> >>> konovalo <konovalo@mail.wplus.net> 03/15/05 12:34 AM >>>
> >>>>The problem we have is that using the 10 key
> >>>>pad on our Sun model Type 5c keyboards almost
> >>>>works. Everything is normal except:
> >>>>pressing '4' translates to 'left arrow'
> >>>>pressing '6' translates to 'right arrow'
> >>Also, running following code on Tcl/Tk interpreter:
> >>pac...
Re: malfunctioning keys in sun 10-key under Perl/Tk
>The problem we have is that using the 10 key
>pad on our Sun model Type 5c keyboards almost
>works. Everything is normal except:
>
> pressing '4' translates to 'left arrow'
> pressing '6' translates to 'right arrow'
>
>
>
is it true for any widget (e.g. Entry or Text) or you mean %K bind
variable, and misbehaving only that?
so "widget" demo also suffers this problem?
In case this is true for all widgets, they try pure Tcl/Tk demo to check
whether it also suffers same problem
-++**==--++**==--++*...
Re: malfunctioning keys in sun 10-key under Perl/Tk #4
>>>The problem we have is that using the 10 key
>>>pad on our Sun model Type 5c keyboards almost
>>>works. Everything is normal except:
>>> pressing '4' translates to 'left arrow'
>>> pressing '6' translates to 'right arrow'
>>>
>>>
>>is it true for any widget (e.g. Entry or Text) or you mean %K bind
>>variable, and misbehaving only that?
>>so "widget" demo also suffers this problem?
>>In case this is true for all widgets, they try pure Tcl/Tk de...
RE: malfunctioning keys in sun 10-key under Perl/Tk #2Troy.A Johnson wrote:
> The problem we have is that using the 10 key
> pad on our Sun model Type 5c keyboards almost
> works. Everything is normal except:
>
> pressing '4' translates to 'left arrow'
> pressing '6' translates to 'right arrow'
We worked around this same issue from the application side (see
discussion below). It would be nice to get a real fix in place.
Dave Gordon
Micron Technology, Inc.
-----Original Message-----
Sent: Wednesday, September 29, 2004 2:42 PM
Subject: RE: Tk Entry Widget issue
Accor...
Re: malfunctioning keys in sun 10-key under Perl/Tk #7>>> konovalo <konovalo@mail.wplus.net> 02/02/05 2:55 PM >>>
>>>The problem we have is that using the 10 key
>>>pad on our Sun model Type 5c keyboards almost
>>>works. Everything is normal except:
>>> pressing '4' translates to 'left arrow'
>>> pressing '6' translates to 'right arrow'
>Also, running following code on Tcl/Tk interpreter:
>pack [text .t]
>will bring a Tcl/Tk GUI and widget on it for you to check behaviour
Using 'wish' to check out:
pack [ text .t...
Re: malfunctioning keys in sun 10-key under Perl/Tk #6At 02:28 PM 2/11/2005, Troy.A Johnson wrote:
>The problem is that it doesn't seem to print anything at all. I made another
>program to dump the bindings and nothing seems to get bound either.
>
>I think I must be doing something wrong, I just don't know what. Will someone
>please give me a clue? Thanks in advance, sorry to bother you all.
You should bind '<KeyPress>', not 'KeyPress'.
-++**==--++**==--++**==--++**==--++**==--++**==--++**==
This message was posted through the Stanford campus mailing list
server. If you wish to unsubs...
Re: malfunctioning keys in sun 10-key under Perl/Tk #3>>> konovalo <konovalo@mail.wplus.net> 02/02/05 11:32 AM >>>
>>The problem we have is that using the 10 key
>>pad on our Sun model Type 5c keyboards almost
>>works. Everything is normal except:
>> pressing '4' translates to 'left arrow'
>> pressing '6' translates to 'right arrow'
>is it true for any widget (e.g. Entry or Text) or you mean %K bind
>variable, and misbehaving only that?
>so "widget" demo also suffers this problem?
>In case this is true for all widgets, they tr...
Re: malfunctioning keys in sun 10-key under Perl/Tk #12Note that I just tried, this morning, the patch found
https://sourceforge.net/tracker/?func=detail&aid=481308&group_id=12997&atid=312997
and after hand editing the files to get the code in the right place, then doing
a make clean and make, the resulting Tk library appears to handle the sun
numeric keypad 'correctly'; that is to say:
In num lock on mode, the 0-9 characters and the ., +, -, *, and / keys generate the corresponding
characters. I'm uncertain what the Enter key is generating.
In num lock off mode, the 2, 4, 6, 8 keys result in cursor motion. Th...
Re: malfunctioning keys in sun 10-key under Perl/Tk #8
>>>>The problem we have is that using the 10 key
>>>>pad on our Sun model Type 5c keyboards almost
>>>>works. Everything is normal except:
>>>>pressing '4' translates to 'left arrow'
>>>>pressing '6' translates to 'right arrow'
>>>>
>>>>
>>Also, running following code on Tcl/Tk interpreter:
>>pack [text .t]
>>will bring a Tcl/Tk GUI and widget on it for you to check behaviour
>>
>>
>
>Using 'wish' to check o...
Re: malfunctioning keys in sun 10-key under Perl/Tk #5Hi!
I have a question about a code snippet I
found in the Mastering Perl/Tk book (chapter
15). I just wrapped it with a couple lines of
code:
==========
#!/usr/local/perl585/bin/perl -w
use Tk;
my $title = $ARGV[0] || $0;
my $mw = new MainWindow;
$mw->title($title);
$mw->bind('KeyPress' => \&print_keysym);
my $label = $mw->Label(-text => $title);
$label->pack;
my $entry = $mw->Entry(-width => 20);
$entry->pack;
my $button = $mw->Button(-text => "Exit", -command => sub { exit; });
$button->pack;
...
Re: malfunctioning keys in sun 10-key under Perl/Tk #11
Re: bug report regarding numeric keypad
You might try searching the bug database for strings like "pad".
I did and noticed numerous similar reports which seem to keep being
closed.
--
Tcl - The glue of a new generation. <URL: http://wiki.tcl.tk/ >
Larry W. Virden <mailto:lvirden@cas.org > <URL: http://www.purl.org/NET/lvirden/ >
Even if explicitly stated to the contrary, nothing in this posting should
be construed as representing my employer's opinions.
-><-
-++**==--++**==--++**==--++**==--++**==--++**==--++**==
This message was posted...
Re: Perl-tk cut and paste key bindingsColin Tuckley <colin@tuckley.org> writes:
>(cross posted from comp.lang.perl.tk where there was no response)
>
>We have a bug filed against the Debian package of perl-tk [1] which says
>that "CAPS-LOCK + Ctrl + c does not copy into clipboard in TextUndo". I've
>checked cut/paste in Windows XP applications and it does indeed work there.
>
>I've investigated and found that these key bindings are set in MainWindow.pm
>and are thus active for the whole application.
>
>The bindings for cut, copy, paste, undo, and redo are set different...
Re: Perl-tk cut and paste key bindings #2Nick Ing-Simmons wrote:
> The idea being to mimic key bindings that platform normaly provides.
> Snag being that X11 isn't very regular in this regard. In particular
> Control-C is no use in a terminal emulator window - as it kills the shell ;-)
> What does Tcl/Tk do?
> What do other X11 GUIs do (KDE/Gnome)?
With the help of a few people with various different systems we have
discovered that <Caps-Lock><Ctrl>c does the same as <Ctrl>c on every system
and application where it does anything sensible. Also we have found that
<Shift><C...
Re: Perl-tk cut and paste key bindings #3Colin Tuckley <colin@tuckley.org> writes:
>Nick Ing-Simmons wrote:
>
>> The idea being to mimic key bindings that platform normaly provides.
>> Snag being that X11 isn't very regular in this regard. In particular
>> Control-C is no use in a terminal emulator window - as it kills the shell ;-)
>
>> What does Tcl/Tk do?
>> What do other X11 GUIs do (KDE/Gnome)?
>
>With the help of a few people with various different systems we have
>discovered that <Caps-Lock><Ctrl>c does the same as <Ctrl>c on every system
...