Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

Re^2: Tk Characters

by Swalif (Scribe)
on May 11, 2009 at 15:29 UTC ( [id://763271]=note: print w/replies, xml ) Need Help??


in reply to Re: Tk Characters
in thread Tk Characters

The code is from the samples provided by Tk I just changed the sentence to an Arabic one , As for the version I just built it using strawberry on windows vista so i think it is the latest .. here is the code
#!/usr/local/bin/perl -w # # Simple Tk script to create a button that prints "Hello, world". Cli +ck on # the button to terminate the program. # # The first line below imports the Tk objects into the application, th +e second # line creates the main window, the third through sixth lines create t +he button # and defines the code to execute when the button is pressed, the seve +nth line # asks the packer to shrink-wrap the application's main window around +the # button, and the eight line starts the event loop. use Tk; $MW = MainWindow->new; $hello = $MW->Button( -text => 'Hello, world', -command => sub {print STDOUT "Hello, world\n"; exit;}, ); $hello->pack; MainLoop;
I will check the link you provided now .. thanks

Replies are listed 'Best First'.
Re^3: Tk Characters
by almut (Canon) on May 11, 2009 at 15:38 UTC
    I just changed the sentence to an Arabic one

    ...but that's the interesting part :)

    In other words, the very way of specifying the Arabic text may be the reason it's not working.  For example, did you specify UTF-8 characters literally in the code (using a UTF-8 capable editor — in which case you'd need "use utf8;")?  Or did you use \x{....} escapes?  Did you use Unicode at all or some legacy encoding/code page?  Etc...

      Thank you sir, I don't know if it is now fully supported but I do have Arabic support for now,.. Thanks for your help
        Thank you sir,...

        ...madam, btw — just for the record :)

        Also - though not wanting to be too schoolmarmish - I'd say the best way to say thanks to the community is to post a short feedback, saying what the issue actually was, and how it was solved.  People who'll dig this up later, will likely appreciate finding more info than that someone else was having some similar problem...

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others learning in the Monastery: (3)
As of 2024-03-28 16:48 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found