Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

perl/Tk GUI for win32

by stungbyascorp (Initiate)
on Jan 30, 2004 at 14:06 UTC ( #325233=perlquestion: print w/ replies, xml ) Need Help??
stungbyascorp has asked for the wisdom of the Perl Monks concerning the following question:

Hi, I am an absolute newbie and have just started off with making a GUI for the Tripwire IDS, using perl/Tk.

I am not able to figure out how to create a button, which on clicking will open the windows registry as read only(we don't won't anyone messing with that do we?), allow the user to select a value and then read that value in an entry box beside the button. I hope I have made the question clear and am very eagerly waiting for a reply. Thanks in advance.

P.S.= It's okay if the registry can't be made read only, I just want to get the selected value into an entry box.

janitored by ybiC: Retitle from less-than-descriptive "please bear", minor formatting tweaks

Comment on perl/Tk GUI for win32
Re: perl/Tk GUI for win32
by halley (Prior) on Jan 30, 2004 at 15:03 UTC
    What have you tried so far? At what point are you stuck? We're happy to help, but what are you actually asking? Are you asking for advice on whether Perl/Tk is good for this, or are you asking why the Tk button clicked event is not properly invoking your callback with expected arguments? How to ask questions the smart way.

    --
    [ e d @ h a l l e y . c c ]

Re: perl/Tk GUI for win32
by arden (Curate) on Jan 30, 2004 at 17:43 UTC
    stungbyascorp, many of us on here use perl/Tk very frequently and are only too happy to help you, but we aren't going to write your program for you. Think of us as tutors, you give it a try and ask us for help when you hit a snag. Let us see what error you're getting a the relevant bit of code and we'll help you find the problem and put you back on the path. halley++ has provided you with a link to help you write a better request, please heed his advice.

    What you want to do can be accomplished, even in read-only, but you have to have a more detailed idea of exactly what you want to do and give it a shot yourself. Come back to us if you have a problem though, we'll still be here! :^)

Re: perl/Tk GUI for win32
by flyingmoose (Priest) on Jan 30, 2004 at 21:50 UTC
    To beat a dead horse, pick up Mastering Perl/Tk by O'Reilly for an awesome Perl/Tk reference manual. Or read the official/web documentation. The Registry stuff will be covered heavily in the Win32 module documentation, but it sounds like you will want to implement your own registry editor to get the "click and select" functionality you want. Given the way the question was posed, it seems like you would want to persue a few other programs before tackling the registry and Tk. They are easy, but they require understanding of a few concepts you may not have picked up yet -- references, modules, callbacks, etc.
Re: perl/Tk GUI for win32
by Daruma (Curate) on Jan 31, 2004 at 04:11 UTC
    Greetings stungbyascorp!
    Welcome to a woderful resource!
    You will receive prompt and helpful responses from many of the folks here at the monastery if you will take a good first effort at coming up with your own solution and posting your code in a new node in the monastery.
    -Daruma

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://325233]
Approved by Corion
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others perusing the Monastery: (13)
As of 2014-07-30 08:11 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My favorite superfluous repetitious redundant duplicative phrase is:









    Results (229 votes), past polls