which "GUI module" you suggest me to use? - Python

This is a discussion on which "GUI module" you suggest me to use? - Python ; In article <1181082196.630888.161620@w5g2000hsg.googlegroups.com>, <montyphyton@> wrote: > >ZioMiP je napisao/la: >> Hi to all... >> >> I'm actually using Tkinter for my GUI... but I need to "put a piece of a >> web-page in a widget" how can I do? ...

+ Reply to Thread
Page 2 of 3 FirstFirst 1 2 3 LastLast
Results 11 to 20 of 23

which "GUI module" you suggest me to use?

  1. Default Re: which "GUI module" you suggest me to use?

    In article <1181082196.630888.161620@w5g2000hsg.googlegroups.com>,
    <montyphyton@> wrote:
    >
    >ZioMiP je napisao/la:
    >> Hi to all...
    >>
    >> I'm actually using Tkinter for my GUI... but I need to "put a piece of a
    >> web-page in a widget" how can I do?
    >>
    >> which GUI module do you suggest me to use for do that?
    >>
    >> or which GUI module do you suggest me to use at all?
    >>
    >> I'm acutally using Windows Xp but I also use Linux...
    >>
    >> I know that WxPython work only under Windows and PyGTK work only under
    >> Linux... there's some other modules?

    >
    >have you considered using qt, i.e., pyqt, pyqwt? unlike wx, qt draws
    >its own icons...
    >


    This completely loses me; what do you mean by "draw its own icon",
    and what does that have to do with rendering Web pages?

  2. Default Re: which "GUI module" you suggest me to use?

    On Jun 6, 12:13 pm, Eric <eric.talev...@> wrote:
    > On Jun 5, 4:17 pm, ZioMiP <m...@fastwebnet.it> wrote:
    >
    >
    >
    > > Cameron Laird ha scritto:

    >
    > > > In article <p%k9i.8712$BU3.5...@tornado.fastwebnet.it>,
    > > > ZioMiP <m...@fastwebnet.it> wrote:
    > > >> Hi to all...

    >
    > > >> I'm actually using Tkinter for my GUI... but I need to "put a piece of a
    > > >> web-page in a widget" how can I do?

    >
    > > >> which GUI module do you suggest me to use for do that?

    >
    > > >> or which GUI module do you suggest me to use at all?

    >
    > > >> I'm acutally using Windows Xp but I also use Linux...

    >
    > > >> I know that WxPython work only under Windows and PyGTK work only under
    > > >> Linux... there's some other modules?

    >
    > > > ? wxPython is available for Linux and Mac OS X. PyGTK is
    > > > available for Windows.

    >
    > > > Apparently you want to embed Web content in a Tkinter widget.
    > > > There are several ways to do this. Do you need a live browser,
    > > > or is it enough to render HTML?

    >
    > > I think is like a "live browser"... not only render HTML because the
    > > webpage got a bit of javascript inside...

    >
    > Is this webpage untouchable, or is HTML rendering just a shortcut to
    > avoid redesigning part of the app? If you need faithful rendering of
    > an arbitrary webpage along with a Javascript runtime, that's a bigger
    > issue, and you might want to look at some of the Mozilla tools,
    > particularly XULRunner:
    >
    > http://developer.mozilla.org/en/docs...er_with_Python
    >
    > Otherwise, wxPython's HTML widget or TkHtml should be fine -- your
    > code will probably be easier to maintain and debug if you translate
    > that bit of Javascript to Python (language constructs are similar,
    > especially with xml.dom.minidom).


    You could also consider the use of Crunchy, and use the web page AS
    the GUI.

    -T


  3. Default Re: which "GUI module" you suggest me to use?

    ZioMiP a écrit :
    ....
    > I think is like a "live browser"... not only render HTML because the
    > webpage got a bit of javascript inside...


    Does the rendering absolutely need to be in your own GUI ?

    Else you can use the *webbrowser* module and simply call user preffered
    browser to display data and run javascript. Less integrated, simpler to
    setup.

    Laurent.

  4. Default Re: which "GUI module" you suggest me to use?

    ok ok , thanks to everybody ^_^

    This HTML page that I need to put in my GUI is a little page with
    JavaScript that run something like banners...

    not gif or animated gif... but text... text randomly choosen by a
    database that I can't control...

    so, I need to put this "piece of browser" for looking the page and let
    it do the rest...

  5. Default Re: which "GUI module" you suggest me to use?

    > This completely loses me; what do you mean by "draw its own icon",
    > and what does that have to do with rendering Web pages?


    maybe "draw its own icons" wasn't the best (or the most accurate way)
    of putting it. what i meant by that is this (from wikipedia):

    "Qt uses its own paint engine and controls. This makes the work of
    porting to other platforms easier because very few classes in Qt
    depended on the target platform. Qt used to emulate the native look of
    its intended platforms, which occasionally led to slight discrepancies
    where that emulation wasn't perfect. This, however, no longer applies
    because the latest versions of Qt use the native styles API of the
    different platforms to draw the Qt controls."

    what does that have to do with rendering web pages? have no idea. i
    just wanted to point out the main difference between qt and wx that he
    should be aware of.


  6. Default Re: which "GUI module" you suggest me to use?

    On Wed, 06 Jun 2007 00:22:40 +0000, Grant Edwards wrote:

    >> I know that WxPython work only under Windows and PyGTK work only under
    >> Linux...

    >
    > You 'know' wrong.
    >
    > wxPython works fine under Windows, Linux and OSX.


    wxPython emulates Gtk (though using some native widgets, it also uses
    some of its own) and in many cases it looks non-native compared to Gtk.
    If your target platform includes Unix systems, you'll have to decide
    whether inconsistencies with the look and feel of the desktop are an
    issue for you.

    > PyGTK works under Linux and Windows, but doens't use native widgets
    > under Windows, so it won't look like a "normal" windows app.


    Gtk on Win32 can be themed to looked like Windows, AFAIK the Win32
    installer does this by default since a couple of months.

    -Samuel

  7. Default Re: which "GUI module" you suggest me to use?

    ZioMiP wrote:

    > I know that WxPython work only under Windows


    WxPython works everywhere for me. I have some screenshots from Windows
    98 - Vista, Mac OSX, and Debian GNU/Linux... all running the exact same
    Python & wxPython code:

    http://filebox.vt.edu/users/rtilley/...sns/index.html



  8. Default Re: which "GUI module" you suggest me to use?

    On 2007-06-06, Samuel <newsgroups@debain.org> wrote:
    > On Wed, 06 Jun 2007 00:22:40 +0000, Grant Edwards wrote:
    >
    >>> I know that WxPython work only under Windows and PyGTK work only under
    >>> Linux...

    >>
    >> You 'know' wrong.
    >>
    >> wxPython works fine under Windows, Linux and OSX.

    >
    > wxPython emulates Gtk


    What? On some platforms (Linux), wxPython _uses_ Gtk. I don't
    see how you could say it emulates it.

    > (though using some native widgets, it also uses some of its
    > own) and in many cases it looks non-native compared to Gtk.


    How can that be the case when wxPython is using Gtk?

    > If your target platform includes Unix systems, you'll have to
    > decide whether inconsistencies with the look and feel of the
    > desktop are an issue for you.


    wxPython looks completely native on Unix, because it's using a
    native widget set (Gtk).

    >> PyGTK works under Linux and Windows, but doens't use native widgets
    >> under Windows, so it won't look like a "normal" windows app.

    >
    > Gtk on Win32 can be themed to looked like Windows, AFAIK the Win32
    > installer does this by default since a couple of months.


    That's good to know.

    --
    Grant Edwards grante Yow! Hello? Enema Bondage?
    at I'm calling because I want
    visi.com to be happy, I guess ...

  9. Default Re: which "GUI module" you suggest me to use?

    On 6/6/07, Samuel <newsgroups@debain.org> wrote:
    > On Wed, 06 Jun 2007 00:22:40 +0000, Grant Edwards wrote:
    >
    > >> I know that WxPython work only under Windows and PyGTK work only under
    > >> Linux...

    > >
    > > You 'know' wrong.
    > >
    > > wxPython works fine under Windows, Linux and OSX.

    >
    > wxPython emulates Gtk (though using some native widgets, it also uses
    > some of its own) and in many cases it looks non-native compared to Gtk.
    > If your target platform includes Unix systems, you'll have to decide
    > whether inconsistencies with the look and feel of the desktop are an
    > issue for you.
    >


    In the general case, wxWidgets wraps (not emulates) Gtk. I don't
    believe that there are any common controls left which are still
    emulated (maybe the list control? I'm not sure - I don't follow the
    bleeding edge of wx anymore).

    wxPython (as opposed to wxWidgets, the C++ core) has a sizeable
    library of custom controls as part of its standard lib. Most of these
    are owner-drawn for various reasons and often won't appear native
    (Andrea Gavin, probably the most prolific custom control author, works
    primarily on Windows).

    > > PyGTK works under Linux and Windows, but doens't use native widgets
    > > under Windows, so it won't look like a "normal" windows app.

    >
    > Gtk on Win32 can be themed to looked like Windows, AFAIK the Win32
    > installer does this by default since a couple of months.
    >


    That stretches the truth rather significantly. While the win32 theme
    does use the windows theme apis for drawing, it still has slightly
    different colors (especially window backgrounds and menus), and (more
    importantly) vastly and notably different behavior. Shortcuts are
    different, renderings are different, the Gtk drawing model is used
    instead of the windows one (leads to quite jarring repainting
    differences), different fonts, etc, etc. It looks okay in a screenshot
    but is clearly non-native and foreign in use.

  10. Default Re: which "GUI module" you suggest me to use?

    On Wed, 06 Jun 2007 14:43:35 +0000, Grant Edwards wrote:

    > On 2007-06-06, Samuel <newsgroups@debain.org> wrote:
    >> On Wed, 06 Jun 2007 00:22:40 +0000, Grant Edwards wrote:
    >>> wxPython works fine under Windows, Linux and OSX.

    >>
    >> wxPython emulates Gtk

    >
    > What? On some platforms (Linux), wxPython _uses_ Gtk. I don't see how
    > you could say it emulates it.


    That may be true in some cases, but in fact, most widgets show some sort
    of difference. Take for example the HPaned - it looks totally different
    (the slider is a lot slimmer, plus moving it makes a line appear. The
    behavior is different as well).

    Even simple widgets show differences. Try triple-clicking into entry
    boxes, it's different from Gtk.

    >> (though using some native widgets, it also uses some of its own) and in
    >> many cases it looks non-native compared to Gtk.

    >
    > How can that be the case when wxPython is using Gtk?


    Obviously, it does *not* always use Gtk.

    >> If your target platform includes Unix systems, you'll have to decide
    >> whether inconsistencies with the look and feel of the desktop are an
    >> issue for you.

    >
    > wxPython looks completely native on Unix, because it's using a native
    > widget set (Gtk).


    Same as above.

    -Samuel

+ Reply to Thread
Page 2 of 3 FirstFirst 1 2 3 LastLast

Similar Threads

  1. email-display: "N", "D", " ": yeah; but "O"? How to MARK "O"?
    By Application Development in forum Mutt
    Replies: 0
    Last Post: 10-30-2007, 07:13 AM
  2. Replies: 1
    Last Post: 09-19-2007, 09:45 PM
  3. Replies: 0
    Last Post: 03-21-2007, 01:26 PM
  4. "diameter", "has_a_cycle" problems in Graph-0.76 module
    By Application Development in forum Perl
    Replies: 1
    Last Post: 07-12-2006, 03:58 AM
  5. """""""""""""""""""""Visual C++ 2005 Express"""""""""""""""""
    By Application Development in forum DOTNET
    Replies: 0
    Last Post: 03-12-2006, 03:55 AM