Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

Tk vs Win32::GUI

by chorg (Monk)
on Jun 21, 2001 at 19:32 UTC ( [id://90415]=perlquestion: print w/replies, xml ) Need Help??

chorg has asked for the wisdom of the Perl Monks concerning the following question:

Hello all, I have to make a window gui program. I'll need to compile it into an executable to distribute it.
I'd like to make the executable as small as possible. I can do this, I think.
SO: Does Win32GUI use native windows libraries?
Would I be better off using Win32GUI for this project, so I would not have to put the Tk libs into the .exe file?
_______________________________________________
"Intelligence is a tool used achieve goals, however goals are not always chosen wisely..."

Replies are listed 'Best First'.
Re: Tk vs Win32::GUI
by Eradicatore (Monk) on Jun 21, 2001 at 19:44 UTC
    I use perl2exe at www.perl2exe.com and my pretty big program is only about 1.3MB. Not too bad.

    The other thing I wanted to point out was wxPerl at www.wxwindows.org. I've heard this is a great way to do gui's on windows (at least in python and it is there for Perl also) because it uses native windows rather than Tk. And it also runs on Linux and mac using native windows on those platforms as well. Just thought I would put that out there.

    Justin Eltoft

    "If at all god's gaze upon us falls, its with a mischievous grin, look at him" -- Dave Matthews

Re: Tk vs Win32::GUI
by gregor42 (Parson) on Jun 21, 2001 at 19:51 UTC

    Wow! Deja Vu! Have a look at Tk vs Win32::GUI which may be somewhat familiar.

    Though it's not quite the same question you're asking it may be of some use.

    Super Search / Secret Search Is your friend!



    Wait! This isn't a Parachute, this is a Backpack!
Re: Tk vs Win32::GUI
by larryk (Friar) on Jun 21, 2001 at 19:45 UTC

    I don't think so. I have "compiled" a perl script before using perl2exe and Win32::GUI and it stuffs the DLL's in with the file. I believe you can make them external so the .exe file is small(er) and then if you were to do a second one it would use the existing DLLs but I'm not 100% sure.

    update: (5:16pm BST) oh, forgot to mention. if you do use Win32::GUI - keep an eye on the memory requirements. I seem to remember it was pretty hefty for a relatively small app - 400px x 300px main window - 20 elements. and it seemed that the longer I kept it open the more memory it used - more specifically - whenever I moved the mouse pointer around over the window the memory usage went up slowly but surely (and only ever in the one direction) as if the app was "remembering" where the pointer had been.

    "Argument is futile - you will be ignorralated!"

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others imbibing at the Monastery: (4)
As of 2024-03-29 00:49 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found