Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

get user input without Tk ?

Status
Not open for further replies.

MoshiachNow

IS-IT--Management
Joined
Feb 6, 2002
Messages
1,851
Location
IL
Hi,

What is the fastest way to get some user input without using Tk ?
Thanks

Long live king Moshiach !
 
command line?

Paul
------------------------------------
Spend an hour a week on CPAN, helps cure all known programming ailments ;-)
 
Kirsle,

Thanks.I meant opening a GUI window without Tk.Like calling a windows "getOpenFile". Guess it's impossible ?

Long live king Moshiach !
 
Look into Win32::GUI. It should have functions to call "getOpenFile" type things.

Win32::GUI is like Tk but is Windows-only. The advantage is that it uses the native Win32 widgets, not ones emulated by Tk. Also, if you compile a Perl script to an EXE, a Tk script is automatically 3 MB in size because it includes the whole Tk lib, whereas a Win32::GUI executable is much much smaller, because it uses function calls to Windows, and doesn't include all the dirty window codes.

At any rate, in Win32::GUI when you make a new window, it doesn't appear by default, you have to show() it when you want it to appear. So, you could create a Win32::GUI window and keep it invisible, and use that to spawn your getOpenFile calls.

Also, Win32::GUI can make system tray icons for your program, but that's a different nifty feature in itself. ;-)

-------------
Cuvou.com | The NEW Kirsle.net
 
Maybe I don't understand the problem but if the perl is cgi(??) then send a simple web page back with a simple form for input to return to the same perl program with the value. The form could have a hidden form input field along with the requested input so that the perl program can determine this is the reply.
 
it's not CGI, it's GUI as noted in the thread. [wink]

------------------------------------------
- Kevin, perl coder unexceptional! [wiggle]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top