GUI - Qt Designer

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • John Bradbury

    GUI - Qt Designer

    Is there any way to take the output produced by Qt designer (or any other
    GUI designer) and use it in Python to create a screen? There must be a
    better way of creating screens than having to use the TkInter routnes and
    add every widget one by one in the program.

    John Bradbury
  • John J. Lee

    #2
    Re: GUI - Qt Designer

    John Bradbury <john_bradbury@ skiptalk21.com> writes:
    [color=blue]
    > Is there any way to take the output produced by Qt designer (or any
    > other GUI designer) and use it in Python to create a screen? There[/color]
    [...]

    PyQt. It includes pyuic, which does what you want.


    John

    Comment

    • Eric Williams

      #3
      Re: GUI - Qt Designer

      John Bradbury wrote:
      [color=blue]
      > Is there any way to take the output produced by Qt designer (or any other
      > GUI designer) and use it in Python to create a screen? There must be a
      > better way of creating screens than having to use the TkInter routnes and
      > add every widget one by one in the program.
      >
      > John Bradbury[/color]


      You need PyQt and/or PyKDE.

      You can use pyuic DialogWhatever. ui > DialogWhatever. py to convert the
      QtDesigner *.ui file to a python file.

      Then you can import it into a PyQt app and use it like any other python Qt
      class.

      One warning, however: It's not as easily portable as Tkinter. On windows,
      especially, it's pretty much only usable if you've bought the full Qt
      Commercial verson. The free version of Qt/Win only goes up to version 2.3.

      Boa-constructor is alpha still, but usable to make wxPython apps in a RAD
      environment.

      PythonCard was another alternative, but I'm not sure if it's still being
      maintained.

      Hope that helps!

      cya,
      Eric



      --
      ---
      s- should be removed to contact me...

      Comment

      • Phil Thompson

        #4
        Re: GUI - Qt Designer

        On Wednesday 12 November 2003 6:04 pm, John Bradbury wrote:[color=blue]
        > Is there any way to take the output produced by Qt designer (or any other
        > GUI designer) and use it in Python to create a screen? There must be a
        > better way of creating screens than having to use the TkInter routnes and
        > add every widget one by one in the program.[/color]

        Use the pyuic utility that comes with PyQt.

        Phil


        Comment

        • Jarek Zgoda

          #5
          Re: GUI - Qt Designer

          John Bradbury <john_bradbury@ skiptalk21.com> pisze:
          [color=blue]
          > Is there any way to take the output produced by Qt designer (or any other
          > GUI designer) and use it in Python to create a screen?[/color]

          You are not limited to PyQt, wxPython has few nice GUI designers, of
          which wxGLADE seems to be the easiest to use. Or -- at you will -- you
          can use xrc resources, wchich are native to wxWindows and can be shared
          between wxPython and wxWindows applications.

          The window designs (frames, forms) created with Qt Designer can be
          translated to Python code using pyuic tool. BlackAdder IDE has this
          support built-in, although I never tried this approach.

          --
          Jarek Zgoda
          Unregistered Linux User #-1
          http://www.zgoda.biz/ JID:zgoda@chrom e.pl http://zgoda.jogger.pl/

          Comment

          • John Bradbury

            #6
            Re: GUI - Qt Designer

            Phil Thompson wrote:
            [color=blue]
            > On Wednesday 12 November 2003 6:04 pm, John Bradbury wrote:[color=green]
            >> Is there any way to take the output produced by Qt designer (or any other
            >> GUI designer) and use it in Python to create a screen? There must be a
            >> better way of creating screens than having to use the TkInter routnes and
            >> add every widget one by one in the program.[/color]
            >
            > Use the pyuic utility that comes with PyQt.
            >
            > Phil[/color]


            Thanks everyone for the very helpful repsonses. It seems to be a topic whch
            is not covered fully in the books ( at least the ones I have).

            John

            Comment

            • Jim Bublitz

              #7
              Re: GUI - Qt Designer

              John Bradbury wrote:
              [color=blue]
              > Thanks everyone for the very helpful repsonses. It seems to be
              > a topic whch is not covered fully in the books ( at least the
              > ones I have).[/color]

              Since you mentioned books ...



              Jim

              Comment

              Working...