in reply to Re^2: Right-click Edit/Paste in TK Browse Entry
in thread Right-click Edit/Paste in TK Browse Entry
First, I'd like to thank you for this info! I've been using Perl for quite a while, but being self-taught means that sometimes I have to use "cookbook" code that I don't completely understand. On to my comment/question ...
I tried using the "add_edit_popup" sub in my Tk app. It works great for Tk widgets that are in global scope. I pass into "add_edit_popup" my globally scoped MainWindow along with whatever globally scoped widgets, and it works like a charm!
The problem is when I try to do the same with locally scoped Tk widgets that are in a sub. For example, I have a sub that withdraws the root MainWindow and creates a new MainWindow populated with widgets. When I make a call to "add_edit_popup" from within this sub (passing in the local MainWindow and Entry widgets), I get an error saying something along the lines of "can't call 'menu' without package or object reference".
Is this something anyone can answer from what I've described? If not, I'm happy to cook up some sample code to reproduce this problem.
First time poster but long time researcher here. Thanks so much for any help!
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: Right-click Edit/Paste in TK Browse Entry
by Anonymous Monk on Jul 03, 2012 at 21:23 UTC | |
by phatWares (Initiate) on Jul 11, 2012 at 12:00 UTC | |
by Anonymous Monk on Jul 12, 2012 at 11:24 UTC |