Page 1 of 2 12 LastLast
Results 1 to 10 of 11

Thread: Best option for making a GUI

  1. #1
    Join Date
    Sep 2010
    Location
    Toronto, Canada
    Beans
    181
    Distro
    Ubuntu 14.04 Trusty Tahr

    Best option for making a GUI

    Hey guys,

    I wanted to know which language/kit I should use to make a UI to make a basic application. Something that I can use later on for more complicated stuff. For now, I just want to make a basic UI for my application.

    I'm planning on writing my code in python. I know that you can create a GTK UI with python but would it be the best for future purposes?
    Dell Studio 1558: Vincere est totum!
    Core i7 720QM | 1GB ATI Radeon 5470 | 4GB DDR3 1333Mhz RAM | 15.6inch ( 1366X768 ) | 500GB HDD | 6 cell LI-ION Battery
    Mark threads as solved if they are, it makes life easier!

  2. #2
    Join Date
    Mar 2010
    Location
    Norway
    Beans
    674

    Re: Best option for making a GUI

    Quote Originally Posted by lifelike27 View Post
    Hey guys,

    I wanted to know which language/kit I should use to make a UI to make a basic application. Something that I can use later on for more complicated stuff. For now, I just want to make a basic UI for my application.

    I'm planning on writing my code in python. I know that you can create a GTK UI with python but would it be the best for future purposes?
    Yea sure, all you need is there.

    The only disadvantage is bad documentation, gtk with C has good documentation, but not gtk with python. You will likely look through C documentation to find solutions to your problems. Other than that it's fine.

  3. #3
    Join Date
    Sep 2010
    Location
    Toronto, Canada
    Beans
    181
    Distro
    Ubuntu 14.04 Trusty Tahr

    Re: Best option for making a GUI

    I've never made a GUI before so it's going to be a new experience. Is there any benefit for sticking with a python based UI as apposed to C?

    Would putting C UI and python code be a problem as well?

    Sorry for the noobish questions, we all have to learn some how.
    Dell Studio 1558: Vincere est totum!
    Core i7 720QM | 1GB ATI Radeon 5470 | 4GB DDR3 1333Mhz RAM | 15.6inch ( 1366X768 ) | 500GB HDD | 6 cell LI-ION Battery
    Mark threads as solved if they are, it makes life easier!

  4. #4
    Join Date
    Mar 2009
    Location
    Buenos Aires, AR
    Beans
    2,325
    Distro
    Ubuntu

    Re: Best option for making a GUI

    search for python-dialog, Tkinter or HTML5.

    Choose the one you like more, python dialog is easy, as Tk, HTML5 is very cool.

  5. #5
    Join Date
    Dec 2007
    Beans
    82

    Re: Best option for making a GUI

    There are many different libs that you can use in Python, but I think for most GUIs, Java is usually recommended. If you are comfortable with Python, go with Python.
    A little time investment is all that you need
    Bad or good? If you are very good you can even contribute by writing features for those libs as well.

  6. #6
    Join Date
    Jun 2009
    Beans
    352

    Re: Best option for making a GUI

    I've found that there is enough documentation to write applications with pygtk. You might want to take a look at glade as well. A bit finicky and there are some gaps you have to fill in with educated guesses, but it's doable.

  7. #7
    Join Date
    Sep 2009
    Location
    Canada, Montreal QC
    Beans
    1,809
    Distro
    Ubuntu 11.10 Oneiric Ocelot

    Re: Best option for making a GUI

    I write my GUI applications with wxPython. Never needed something else.
    I know not with what weapons World War III will be fought, but World War IV will be fought with sticks and stones.
    Freedom is measured in Stallmans.
    Projects: gEcrit

  8. #8
    Join Date
    Dec 2008
    Location
    Deep Woods of PA
    Beans
    699
    Distro
    Kubuntu 11.10 Oneiric Ocelot

    Re: Best option for making a GUI

    Quote Originally Posted by lifelike27 View Post
    I've never made a GUI before so it's going to be a new experience. Is there any benefit for sticking with a python based UI as apposed to C?

    Would putting C UI and python code be a problem as well?

    Sorry for the noobish questions, we all have to learn some how.
    You can choose your poison as there are many options available including for Python.

    I personally prefer QT as a toolkit, but GTK will work just as well. I do like the QT Designer actually better then Glade(may be there is some other GTK layout designer but I haven't tried them), and as far as I remember PyQT used to be able to do Python Code directly from the UI file that QT designer produces.

    In the end choice will ultimately be yours but if you are just starting out I would suggest starting with the designer and try to have something automated generate Python or C or C++ code for you so you can actually see what's being done before you jump head first into doing it all yourself.

    P.S. If you are just starting out I would suggest doing some light reading before coding.
    QT has some good books that helped me:
    http://developer.qt.nokia.com/books/...cial_c_qt_book

    P.P.S. I know I sound like a walking advertisement so don't shoot.
    Last edited by karlson; September 21st, 2011 at 04:35 PM. Reason: PS
    Regards,

    Karlson

  9. #9
    Join Date
    Sep 2010
    Location
    Toronto, Canada
    Beans
    181
    Distro
    Ubuntu 14.04 Trusty Tahr

    Re: Best option for making a GUI

    Wow, there are a lot of mixed opinions here! I think I'll do a bit of reading on Qt and wxPython/pyGTK to finally choose one. I've heard of a lot of applications that use Qt so I'm a bit more interested in that.

    One last question, would packaging my program into a deb file be a problem of sort for the end user? Basically, I want to make it as simple as possible for a person using my application, to install it with the least number of dependencies needed to run the application.

    Python 2.7 is pre-installed on Ubuntu as far as I know, so I'm guessing wxPython or pyGTK wouldn't need extra dependencies, but what about Qt?

  10. #10
    Join Date
    Dec 2008
    Location
    Deep Woods of PA
    Beans
    699
    Distro
    Kubuntu 11.10 Oneiric Ocelot

    Re: Best option for making a GUI

    Quote Originally Posted by lifelike27 View Post
    One last question, would packaging my program into a deb file be a problem of sort for the end user? Basically, I want to make it as simple as possible for a person using my application, to install it with the least number of dependencies needed to run the application.
    I would suggest get your application written before you start thinking about packaging.

    Python 2.7 is pre-installed on Ubuntu as far as I know, so I'm guessing wxPython or pyGTK wouldn't need extra dependencies, but what about Qt?
    You might want to check on this. QT is installed if you are using KUBUNTU, if you are using a server you may not even have a GTK.
    Regards,

    Karlson

Page 1 of 2 12 LastLast

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •