What GUI toolkit looks the best?

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Paul Rubin

    What GUI toolkit looks the best?

    I've been approached about writing a Windows app which will need a
    really professional looking GUI. Forget TKinter, this has to actually
    look good (real artists will be available to get the visual stuff
    right). Assuming I write in Python, what's the best toolkit to use?
    Some cost in implementation pain is tolerable if the finished
    interface looks better as a result. It would be nice if the toolkit
    runs on multiple platforms rather than being Windows-only.

    I'm thinking Glade. Is that reasonable? I don't know squat about
    Windows and haven't done much fancy GUI programming since the early X
    days.

    Thanks.
  • Brian Kelley

    #2
    Re: What GUI toolkit looks the best?

    Paul Rubin wrote:
    [color=blue]
    > I've been approached about writing a Windows app which will need a
    > really professional looking GUI. Forget TKinter, this has to actually
    > look good (real artists will be available to get the visual stuff
    > right). Assuming I write in Python, what's the best toolkit to use?
    > Some cost in implementation pain is tolerable if the finished
    > interface looks better as a result. It would be nice if the toolkit
    > runs on multiple platforms rather than being Windows-only.[/color]

    Why forget Tkinter? I've seen Tkinter applications that look incredibly
    fabulous. A lot depends on what you are trying to do. If you are
    making a graphics-heavy application then Tkinter's canvas is pretty
    sweet. I also think IDLE looks pretty good.
    [color=blue]
    > I'm thinking Glade. Is that reasonable? I don't know squat about
    > Windows and haven't done much fancy GUI programming since the early X
    > days.[/color]

    Glade isn't a GUI, it is a GUI builder that uses GTK. In my experience,
    GTK doesn't look quite right on windows boxes, especially the menus. Of
    course I have the same basic view of Qt and Swing so know you know my
    biases.

    I tend to use Tkinter for canvas heavy applications and wxPython for
    other stuff.

    As for application building, here are my rankings
    1 Emacs :)
    2 Glade with libglade and Mitch Chapman's python libglade wrapper
    3 BlackAdder with Qt
    4 Boa-constructor (largish learning curve here I think)
    5 wxGlade (layout isn't quite right)

    So let me ask what kind of application are you building?

    The bottom line is that I have seen great looking and really poor
    looking apps in all of these gui's.

    Here is my humble opinions in a nutshell (missing a lot here): wxPython
    has a grid control to die for and many, many classes, good printer
    support and looks like a native GTK app on Linux and a native app on
    windows and macintosh. Qt is better for developing - it has a better
    class structure and I tend not to have to look up docs as often and can
    look really, really nice. Tkinter has a killer canvas and great
    postscript output. GTK is really quite fast.

    but don't take my word for this, why don't you see what you like the best?

    All about wxPython, the cross-platform GUI toolkit for the Python language

    GTK is a free and open-source cross-platform widget toolkit for creating graphical user interfaces.




    Speaking of Qt, does anyone want to make a python binding to jakasha?
    Start building the metaverse with the free 3D virtual reality authoring, publishing and playback platform created by artists, for artists


    Brian

    Comment

    • Cameron Laird

      #3
      Re: What GUI toolkit looks the best?

      In article <od_Bb.500677$H S4.3867626@attb i_s01>,
      Brian Kelley <bkelley@wi.mit .edu> wrote:[color=blue]
      >Paul Rubin wrote:
      >[color=green]
      >> I've been approached about writing a Windows app which will need a
      >> really professional looking GUI. Forget TKinter, this has to actually
      >> look good (real artists will be available to get the visual stuff
      >> right). Assuming I write in Python, what's the best toolkit to use?[/color][/color]

      Comment

      • Paul Rubin

        #4
        Re: What GUI toolkit looks the best?

        claird@lairds.c om (Cameron Laird) writes:[color=blue]
        > Paul, I certainly can understand your dismissal of Tkinter
        > as it's commonly employed. Are you aware, though, of <URL:
        > http://tcl.projectforum.com/tk/Home > and <URL:
        > http://mini.net/tcl/10424 >? Tkinter might, in fact, best
        > meet your requirements.[/color]

        No I'm not. I wrote one tkinter application just to try it out and
        while it was nice for putting up a quick and dirty gui, it looked very
        crude and the API was also quite inflexible. I clicked the first of
        those two url's and it seems to be an in-progress discussion about how
        to rework tcl to fix its limitations, but I don't want to rely on
        something that's not yet already working. Thanks though.

        Comment

        • P@draigBrady.com

          #5
          Re: What GUI toolkit looks the best?

          Brian Kelley wrote:[color=blue]
          > Paul Rubin wrote:
          >[color=green]
          >> I've been approached about writing a Windows app which will need a
          >> really professional looking GUI. Forget TKinter, this has to actually
          >> look good (real artists will be available to get the visual stuff
          >> right). Assuming I write in Python, what's the best toolkit to use?
          >> Some cost in implementation pain is tolerable if the finished
          >> interface looks better as a result. It would be nice if the toolkit
          >> runs on multiple platforms rather than being Windows-only.[/color]
          >
          >
          > Why forget Tkinter? I've seen Tkinter applications that look incredibly
          > fabulous. A lot depends on what you are trying to do. If you are
          > making a graphics-heavy application then Tkinter's canvas is pretty
          > sweet. I also think IDLE looks pretty good.
          >[color=green]
          >> I'm thinking Glade. Is that reasonable? I don't know squat about
          >> Windows and haven't done much fancy GUI programming since the early X
          >> days.[/color]
          >
          >
          > Glade isn't a GUI, it is a GUI builder that uses GTK. In my experience,
          > GTK doesn't look quite right on windows boxes, especially the menus. Of
          > course I have the same basic view of Qt and Swing so know you know my
          > biases.
          >
          > I tend to use Tkinter for canvas heavy applications and wxPython for
          > other stuff.
          >
          > As for application building, here are my rankings
          > 1 Emacs :)
          > 2 Glade with libglade and Mitch Chapman's python libglade wrapper[/color]

          Freaky. I've been using something VERY similar for the last 2 years.
          An example of my libglade.py usage is at:

          Great minds think alike I suppose :-)

          Pádraig.

          Comment

          • Cameron Laird

            #6
            Re: What GUI toolkit looks the best?

            In article <7xekvb1koc.fsf @ruckus.brouhah a.com>,
            Paul Rubin <http://phr.cx@NOSPAM.i nvalid> wrote:[color=blue]
            >claird@lairds. com (Cameron Laird) writes:[color=green]
            >> Paul, I certainly can understand your dismissal of Tkinter
            >> as it's commonly employed. Are you aware, though, of <URL:
            >> http://tcl.projectforum.com/tk/Home > and <URL:
            >> http://mini.net/tcl/10424 >? Tkinter might, in fact, best
            >> meet your requirements.[/color]
            >
            >No I'm not. I wrote one tkinter application just to try it out and
            >while it was nice for putting up a quick and dirty gui, it looked very
            >crude and the API was also quite inflexible. I clicked the first of
            >those two url's and it seems to be an in-progress discussion about how
            >to rework tcl to fix its limitations, but I don't want to rely on
            >something that's not yet already working. Thanks though.[/color]

            I persist at this out of concern that I'm not making things clear.
            My stake, incidentally, is that you be successful, not that you
            use any particular toolkit.

            The second URL gives working code that you can use immediately in
            your own applications to improve their appearance. This is not an
            extension or anything at all difficult or constraining; it's just
            a little prologue that refines the standard Tkinter appearance.
            It *is* in use, right now, in several applications that must have
            professional appearances. The first URL is about committee work,
            essentially, that will fold the enhancements of the second URL
            back into the standard Tk distribution.
            --

            Cameron Laird <claird@phaseit .net>
            Business: http://www.Phaseit.net

            Comment

            • Paul Rubin

              #7
              Re: What GUI toolkit looks the best?

              Brian Kelley <bkelley@wi.mit .edu> writes:[color=blue]
              > Why forget Tkinter? I've seen Tkinter applications that look
              > incredibly fabulous.[/color]

              Got any url's for screen shots?
              [color=blue]
              > A lot depends on what you are trying to do. If
              > you are making a graphics-heavy application then Tkinter's canvas is
              > pretty sweet. I also think IDLE looks pretty good.[/color]

              There will be some graphical icons and stuff like that which people
              will click on, but no really heavy graphics or drawing tools in the
              sense of a photo editor or anything like that.
              [color=blue]
              > Glade isn't a GUI, it is a GUI builder that uses GTK. In my
              > experience, GTK doesn't look quite right on windows boxes, especially
              > the menus. Of course I have the same basic view of Qt and Swing so
              > know you know my biases.[/color]

              Oh ok, I understand a bit better now.
              [color=blue]
              > I tend to use Tkinter for canvas heavy applications and wxPython for
              > other stuff.[/color]

              Is wxPython Windows specific? I guess it is, but can I port the
              screen layouts to some comparable Linux toolkit or anything like that?
              The screen shots for it do look really nice.
              [color=blue]
              > Here is my humble opinions in a nutshell (missing a lot here):
              > wxPython has a grid control to die for and many, many classes, good
              > printer support and looks like a native GTK app on Linux and a native
              > app on windows and macintosh.[/color]

              Oh wow, yes I guess it's cross platform then. Hmm, what Micro$oft
              tool do I need to build and run it? Is Visual C++ enough? I guess
              I can get the client to pay for some stuff like that. Also, is there
              a Glade-like drag and drop gui editor for it?
              [color=blue]
              > Qt is better for developing - it has a better class structure and I
              > tend not to have to look up docs as often and can look really,
              > really nice.[/color]

              The KDE apps that I've seen look good but not really top notch. Maybe
              more attention could improve them. They're certainly good enough for
              practical use.
              [color=blue]
              > Tkinter has a killer canvas and great postscript output. GTK is
              > really quite fast.[/color]

              I think I don't care about heavy duty graphics or more than rudimentary
              printing.
              [color=blue]
              > but don't take my word for this, why don't you see what you like the best?
              >
              > http://www.wxpython.org/
              > http://www.gtk.org/
              > http://www.scriptics.com/
              > http://www.trolltech.com/[/color]

              I don't know what I can really tell from these without more experience
              with them. In particular, which is the most solid and reliable across
              a wide range of Windows versions (95, 98, ..., XP whatever)? That
              matters too.

              Thanks!

              Paul

              Comment

              • Paul Rubin

                #8
                Re: What GUI toolkit looks the best?

                claird@lairds.c om (Cameron Laird) writes:[color=blue]
                > I persist at this out of concern that I'm not making things clear.
                > My stake, incidentally, is that you be successful, not that you
                > use any particular toolkit.
                >
                > The second URL gives working code that you can use immediately in
                > your own applications to improve their appearance. This is not an
                > extension or anything at all difficult or constraining; it's just
                > a little prologue that refines the standard Tkinter appearance.
                > It *is* in use, right now, in several applications that must have
                > professional appearances. The first URL is about committee work,
                > essentially, that will fold the enhancements of the second URL
                > back into the standard Tk distribution.[/color]

                Oh cool. The second screen shot on that page ("after") does look a
                lot better than the "before" shot. I guess I'll look at it more
                carefully, but Tkinter has always made me cringe because of its use of
                tcl (why does it need its own extension language if Python itself is
                supposed to be such a good one)? Thanks.

                Comment

                • Brian Kelley

                  #9
                  Re: What GUI toolkit looks the best?

                  Paul Rubin wrote:[color=blue]
                  >[color=green]
                  >>Here is my humble opinions in a nutshell (missing a lot here):
                  >>wxPython has a grid control to die for and many, many classes, good
                  >>printer support and looks like a native GTK app on Linux and a native
                  >>app on windows and macintosh.[/color]
                  >
                  >
                  > Oh wow, yes I guess it's cross platform then. Hmm, what Micro$oft
                  > tool do I need to build and run it? Is Visual C++ enough? I guess
                  > I can get the client to pay for some stuff like that. Also, is there
                  > a Glade-like drag and drop gui editor for it?[/color]

                  None. Just download the wxpython binaries and away you go. If you want
                  to build from scratch Visual C++ is enough. wxGlade is a good designer
                  although it does have some warts. wxDesigner is good as well, although
                  not free.


                  All about wxPython, the cross-platform GUI toolkit for the Python language


                  wxGlade


                  wxDesigner


                  And join the wxpython mailing list. You'll be glad that you did.
                  Brian

                  Comment

                  • Edward K. Ream

                    #10
                    Re: What GUI toolkit looks the best?

                    I have a lot of experience with both wxPython and Tkinter. I would urge
                    caution regarding any quick judgments. All cross-platform toolkits have
                    significant bugs and design flaws.

                    My experience is that Tkinter is the "least bad" and more flexible.
                    wxPython (of course) inherits all the _many_ bugs in wxWindows. It's not
                    clear that wxWindows really actually works. Whenever I use
                    wxPython/wxWindows I find more bugs in a week than I have found in 3+ years
                    with Tk/Tkinter. YMMV. The (admittedly very cool) wxPython demo regularly
                    segfaults on Windows. Sheesh.

                    The main point is that some real experimentation (and risk!) is going to be
                    required for any significant project. You may as well budget some time for
                    frustration: it _is_ going to be there.

                    Just one example of what you might expect. My app uses a Text widget in
                    many non-trivial ways. Both Tkinter/Tk and wxPython/wxWindows have
                    seemingly minor, but actually _major_ problems with Text widgets.

                    Tk "helpfully" adds a newline at the end of text widgets in various
                    situations, which leads to no end of complications in my app. I wish Tk
                    would just _buzz off_ and not mess with my data. But noooooo.

                    The wxWindows Text widget, OTOH, uses an absolutely brain-dead api that
                    exposes platform-specific line endings. The complications become truly
                    horrendous for serious work: there is no proper model behind Text offsets.

                    Actually, both Tkinter and wxPython totally suck regarding offsets into text
                    widgets. One would like integer offset in the text widget to be _identical
                    in all respects_ with the integer offset into the Python strings that one
                    passes to and receives from these widgets. But nooooooo... I call this the
                    "cursed offset problem", which is really a special case of the "cursed
                    newline problem" :-)

                    In short, any cross-platform gui is going to cause you unexpected problems.
                    I'm not saying "don't use these tools". I am saying: "be prepared for nasty
                    surprises".

                    Edward

                    P.S. The idea that Tk is going to be "revitalize d" any time soon is a
                    yawner, IMO. Wake me up when it happens.

                    EKR
                    --------------------------------------------------------------------
                    Edward K. Ream email: edreamleo@chart er.net
                    Leo: Literate Editor with Outlines
                    Leo: http://webpages.charter.net/edreamleo/front.html
                    --------------------------------------------------------------------


                    Comment

                    • Cameron Laird

                      #11
                      Re: What GUI toolkit looks the best?

                      In article <7x65gn1jk5.fsf @ruckus.brouhah a.com>,
                      Paul Rubin <http://phr.cx@NOSPAM.i nvalid> wrote:

                      Comment

                      • Cameron Laird

                        #12
                        Re: What GUI toolkit looks the best?

                        In article <7xad5z1jq5.fsf @ruckus.brouhah a.com>,
                        Paul Rubin <http://phr.cx@NOSPAM.i nvalid> wrote:[color=blue]
                        >Brian Kelley <bkelley@wi.mit .edu> writes:[color=green]
                        >> Why forget Tkinter? I've seen Tkinter applications that look
                        >> incredibly fabulous.[/color]
                        >
                        >Got any url's for screen shots?[/color]

                        Comment

                        • John Roth

                          #13
                          Re: What GUI toolkit looks the best?


                          "Paul Rubin" <http://phr.cx@NOSPAM.i nvalid> wrote in message
                          news:7x65gn1jk5 .fsf@ruckus.bro uhaha.com...[color=blue]
                          > claird@lairds.c om (Cameron Laird) writes:[color=green]
                          > > I persist at this out of concern that I'm not making things clear.
                          > > My stake, incidentally, is that you be successful, not that you
                          > > use any particular toolkit.
                          > >
                          > > The second URL gives working code that you can use immediately in
                          > > your own applications to improve their appearance. This is not an
                          > > extension or anything at all difficult or constraining; it's just
                          > > a little prologue that refines the standard Tkinter appearance.
                          > > It *is* in use, right now, in several applications that must have
                          > > professional appearances. The first URL is about committee work,
                          > > essentially, that will fold the enhancements of the second URL
                          > > back into the standard Tk distribution.[/color]
                          >
                          > Oh cool. The second screen shot on that page ("after") does look a
                          > lot better than the "before" shot. I guess I'll look at it more
                          > carefully, but Tkinter has always made me cringe because of its use of
                          > tcl (why does it need its own extension language if Python itself is
                          > supposed to be such a good one)? Thanks.[/color]

                          And that is what is called a "real good question." I believe that
                          you're supposed to be able to use the Tk libraries without using
                          TCL, but the people that wrote Tkinter weren't able to make it
                          work. I don't, however, know this for a fact, it's just something
                          that's bouncing around the old synapses...

                          John Roth


                          Comment

                          • Cameron Laird

                            #14
                            Re: What GUI toolkit looks the best?

                            In article <vth78mea92j65e @news.supernews .com>,
                            John Roth <newsgroups@jhr othjr.com> wrote:

                            Comment

                            • Fredrik Lundh

                              #15
                              Re: What GUI toolkit looks the best?

                              Edward K. Ream wrote:
                              [color=blue]
                              > Tk "helpfully" adds a newline at the end of text widgets in various
                              > situations, which leads to no end of complications in my app. I wish Tk
                              > would just _buzz off_ and not mess with my data. But noooooo.[/color]

                              that's why you should design your own leo widget:



                              half-serious-ly yrs /F




                              Comment

                              Working...