in reply to How do I get Tk to display on a remote computer?

Tk is a GUI library used for writing applications that need a local display (though remote X connections are available through X11 forwarding, as you have heard). It sounds as if you've written a program to be executed from a web server, which will output data to be displayed in a web browser.

In other words, I could rephrase your question as "I have a Perl CGI program on my web server that launches a web browser on the server. I cannot see that web browser running in my web browser on my client." The answer to that is, "That's true. It doesn't work that way."

Does that make sense?

  • Comment on Re: How do I get Tk to display on a remote computer?

Replies are listed 'Best First'.
Re: Re: How do I get Tk to display on a remote computer?
by @ncientgoose (Novice) on Aug 10, 2002 at 18:32 UTC
    Yes I do see what you mean. When I started with Tk, I thought that it didn't require a local display, but could be sent to a client browser. Do you know of a module that allows the manipulation of buttons and such for a web browser. I really don't want to use java instead.
    Thanks,
    @ncientgoose

      That's also a hard question to answer, for much the same reason. The way a program running on the server communicates with the client is by sending a chunk of data back to the client. The client decides what to do with that data.

      There are ways to return HTML, XML, CSS, JavaScript, Java, and even Flash to the client, but you're at the mercy of the client as to what it will and will not accept. In a tightly controlled environment, you can use client-side Perl Script, but it sounds like server-side Perl, by itself, is not the right solution for you.