Elijah has asked for the wisdom of the Perl Monks concerning the following question:
This will not do of course so I have looked into ways to get this character to not print to screen when entered. In Tk::Text they have a bindRdOnly sub that looks like it would do what I want it to do but every time I try and use it it cries about not having a package or an object fed to it. So naturally I try to give it one of my widget fields and this makes it happy (at least enough to run ) but then the control signal still appears and the file wont even save.
That is my code I have tried. I have tried about 10 variations of this code and even have tried to re-create the recursive function of "sub ClassInit" in Tk::Text because this appears to be how the author of this mod used the bindRdOnly function. Of course that diod not work either.$t->bindRdOnly('<Control-s>', [\&save_file]);
Anyone have any ideas on how I can accomplish this?
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: tk bindings and readonly?
by Roger (Parson) on Dec 10, 2003 at 22:55 UTC | |
by Elijah (Hermit) on Dec 10, 2003 at 23:03 UTC | |
by JamesNC (Chaplain) on Dec 11, 2003 at 12:59 UTC | |
Re: tk bindings and readonly?
by converter (Priest) on Dec 10, 2003 at 22:47 UTC | |
by converter (Priest) on Dec 10, 2003 at 23:54 UTC |