Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

Application GUIs with PERL.

by Anonymous Monk
on Mar 16, 2001 at 06:29 UTC ( [id://64864]=perlquestion: print w/replies, xml ) Need Help??

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

Hello, After much gnashing of teeth, I've discovered that PERL/TK cannot easily manage table data in its structures (i.e. it cannot color listboxes, coloring items in a tree comes out funky, autosizing of cells has trouble, etc). What other application GUIs does Perl work with? I looked into win32-gui but it seems pretty new. Would JAVA be a better solution for this? Thanks, Daniel L. Needles

Replies are listed 'Best First'.
Re: Application GUIs with PERL.
by kschwab (Vicar) on Mar 16, 2001 at 07:10 UTC
    Before you give up on Tk, you may want to have a look at Tk::HList. It's a sort of extended listbox widget, with color. I've had great success with it.

    As far a autosizing goes, you may just need to experiment a bit more with the geometry manager, pack() and/or place().

      You can use Gtk. Although I'm unfamiliar with Tk, I've used Gtk; and, as I understand it, Tk is easier to work with and produces good results.
      If, however, you become interested in Gtk, this is a good resource.
      Actually, I tried HLIST via TREE. (See previous sub about 15 down under dneedles2. It has two examples. I got 0 replies). The behavior I see is the selected item colors across the frame but unselected rows only color to the end of the text. It makes for a rather ugly app. Could you forward me an example that works?
        It's possible that there are different responses with different OSes.. I'm not really sure if those two modules have really been tested with Win2k
      Regarding the autosize. I have no problem with regular widgets. I'm having problems with the column headings inside the widgets. For example, in HLIST and TREE there seems to be no way to stop the columns from resizing. The language doesn't seem to handle sub widet and row items very well at all.
Re: Application GUIs with PERL.
by orbital (Scribe) on Mar 16, 2001 at 21:46 UTC
    I have had good success with Win32::Gui

    Win32::GUI is a Win32-platform native graphical user interface toolkit for perl. basically, it's an XS implementation of most of the functions found in user32.dll and gdi32.dll, with an object oriented perl interface and an event-based dialog model that mimic the functionality of visual basic.

    The stablility of this module is quite good, considering stability in a win32 environment is an oxymoron.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others about the Monastery: (7)
As of 2024-04-18 12:32 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found