Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Migrating to Visual Basic to perl - working with user interfaces

I've been around Visual Basic for years in high school, and I've grown up with the IDE supplied by Microsoft. It'd wonderful, but the educational and "working-model" editions of VB available to me through school don't allow me to redistribute software, as part of the EULA with Microsoft.

I instead find myself working in perl to design programs for friends and family, and it works fairly well, but I don't have a firm grasp on building user interfaces yet. I understand I could design user-interfaces with tcl/tk for perl, but the notion of coding all of that by hand is a bit daunting to me. That brings me to my question.

Do you have any suggestions for a tool I could use that would allow me to build GUIs for my perl programs?

Thanks in advance!

like image 568
Micah Avatar asked Aug 17 '26 10:08

Micah


2 Answers

In addition to what tsee suggested, you can have a look at : Perl/Qt (using Qtdesigner) and Perl::GladeXML (using Glade)

With Glade and Qtdesigner, you can generate a XML file that will describe your user interface and it will be a matter of hooking your perl code to widget's events.

like image 97
ccheneson Avatar answered Aug 20 '26 04:08

ccheneson


I don't think you will find something as simple and well integrated for Perl as the Visual Basic GUI builder. A couple of pointers:

  • wxGlade can be used to design GUIs for the Wx GUI toolkit (for Perl, not only Python).

  • For Win32::GUI, you can use the GUI Loft to achieve something similar.

I think there's a bunch of other GUI builders including at least one for Tk, but I don't remember the name.

Either way, I believe you will have to accept that you have to do more coding vs. designing when compared to VB. The upside is that if you use Tk or Wx, your programs may well be portable to all major operating systems.

For a Perl-specific development environment, you might want to check out Padre, which is itself written in Perl using Wx. It's under active development, so eventually, somebody will probably integrate a GUI builder, too.

like image 34
tsee Avatar answered Aug 20 '26 06:08

tsee