As soon as you define "webbased look and feel" we'll have your answer. :)

Seriously, there has been some discussion c.l.p.tk of "skinning" Tk apps, so that they have an internally consistent graphic theme which differs from the rest of your applications. We also have Petruchio's Tk::Style module, which allows for something similar as I understand it. But if your clients want a web browser experience, what's wrong with ripping the Tk interface from your application and replacing it with a CGI interface? Of course, I make this sound trivial, and in some ways for a well-designed application it would be trivial. But it's not, since direct GUI interaction is not the same as turn-based HTTP interaction.

Some tricks you can try might include embedding widgets into your Tk::Text object (and if you don't have one, looks like you'll get to figure one out), and building a toolbar with some fancy icons and some standard browser notions on it. By putting your widgets into the Tk::Text object they will be drawn a lot more like the elements on a web page.

But me personally, I'd ask the client what exactly their problem with the current interface is. By removing borders from buttons, and setting backgrounds to a consistent color, and stuff like that, you can make your app look a lot less like a bunch of glued together GUI-construction-kit pieces and more like a solid whole. Again, Tk::Style looks like it would be helpful in this endeavor.

In reply to (ichimunki) Re: Webbased look and feel in Perl/Tk by ichimunki
in thread Webbased look and feel in Perl/Tk by juo

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.