Re: How to use GUI



V S Rawat wrote:

It is in continuation of my Hindi to Unicode font
transliteration program that is successfully working in perl.

The program runs from msdos prompt. It reads a input file and
converts the contents to give an output file in utf8 encoding.

However, now I want to do away with dos part, and want it to
work under winxpsp2.

I want it to have a input text box in which I would paste the
contents from clipboard (text copied to clipboard from some
other software).

I will press a key to convert, and it should give me the
converted rtf8/unicode text in another text box which I should
be able to copy to clipboard to take to another software and
paste there.

I am totally nil in perl's GUI. I have used GUI in Java so I
guess I know some concepts.

Could someone guide me step by step as to which part of perldoc
to read, which sites to visit for samples/ source codes/
tutorials on GUI, etc?

Have activeperl 5.8.

It should be pretty easy to do this in Perl/Tk. Tk is a truly marvelous GUI package. If Perl/Tk isn't already installed on your system (I think it comes with current ActiveState distributions, but I'm not certain of that), use PPM to install it.


perldoc tk

Also see the book "Learning Perl/Tk" by Nancy Walsh, O'Reilly.

--
Bob Walton
Email: http://bwalton.com/cgi-bin/emailbob.pl
.



Relevant Pages

  • How to use GUI
    ... transliteration program that is successfully working in perl. ... It reads a input file and ... contents from clipboard (text copied to clipboard from some ... I am totally nil in perl's GUI. ...
    (comp.lang.perl.misc)
  • Re: Why I can NOT have a class inside a method?
    ... Inside it, I need a ActionListener. ... pops up a gui which lets the user to select the path and input file ... feature since it is so obviously needed. ...
    (comp.lang.java.programmer)
  • Re: Copying only axes from GUI
    ... differrent graphs.. ... This sucks since it is a very complicated GUI from which I only need to ... You could try using COPYOBJ to copy the axes to a new figure and use ... "print -dbitmap" to print that new figure to the clipboard. ...
    (comp.soft-sys.matlab)
  • Re: creating standalone app
    ... arun. ... In your case you program up a button callback function to get your input file - check out ... This function generates a nice ready built GUI which enables you to select your directory and file in a very Windows way ...
    (comp.soft-sys.matlab)
  • Re: copy / paste
    ... Aaron Copeland wrote: ... then use "copyobj" ... then print to clipboard using "print -dmeta" ... instead copies my application GUI. ...
    (comp.soft-sys.matlab)