10 Replies - 1144 Views - Last Post: 27 September 2010 - 09:23 PM Rate Topic: -----

#1 barrow29  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 5
  • Joined: 17-April 10

gui help

Posted 23 September 2010 - 06:50 AM

how would i open a gui window or is it even posible
Is This A Good Question/Topic? 0
  • +

Replies To: gui help

#2 Motoma  Icon User is offline

  • D.I.C Addict
  • member icon

Reputation: 452
  • View blog
  • Posts: 796
  • Joined: 08-June 10

Re: gui help

Posted 23 September 2010 - 07:09 AM

Python has an excellent GUI module Tkinter, which supports all platforms, comes in the base install, and carries my strong recommendation.
Was This Post Helpful? 0
  • +
  • -

#3 Seta00  Icon User is offline

  • D.I.C Head
  • member icon

Reputation: 14
  • View blog
  • Posts: 84
  • Joined: 22-September 10

Re: gui help

Posted 23 September 2010 - 08:11 AM

I use and recommend wxPython, which is a modern, cross-platform GUI library.
Was This Post Helpful? 0
  • +
  • -

#4 Eric115  Icon User is offline

  • coderさん
  • member icon

Reputation: 63
  • View blog
  • Posts: 697
  • Joined: 19-January 09

Re: gui help

Posted 24 September 2010 - 05:07 AM

If you are looking for quick and easy dialogs, for user-interface and messages, I would recommend easygui. If you are looking for something to make the gui for an entire program, something like PythonCard might be good as well. Easygui and PythonCard are easy to use and quick to make an effective gui.
Was This Post Helpful? 0
  • +
  • -

#5 barrow29  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 5
  • Joined: 17-April 10

Re: gui help

Posted 24 September 2010 - 06:38 AM

but is there a program that is just used to design the layout of the window so that i can do more accuret coding
Was This Post Helpful? 0
  • +
  • -

#6 Guest_c.user*


Reputation:

Re: gui help

Posted 25 September 2010 - 02:49 AM

View PostSeta00, on 24 September 2010 - 01:11 AM, said:

I use and recommend wxPython, which is a modern, cross-platform GUI library.

how to install it to python 3.x ?
or pygtk ?
Was This Post Helpful? 0

#7 Dogstopper  Icon User is offline

  • The Ninjaducky
  • member icon



Reputation: 2874
  • View blog
  • Posts: 11,047
  • Joined: 15-July 08

Re: gui help

Posted 25 September 2010 - 08:15 AM

View Postc.user, on 25 September 2010 - 04:49 AM, said:

View PostSeta00, on 24 September 2010 - 01:11 AM, said:

I use and recommend wxPython, which is a modern, cross-platform GUI library.

how to install it to python 3.x ?
or pygtk ?


Installing Python

If you're on a Windows System, you will want to find your Python installation directory (Usually C:\Python**\)

On *NIX systems, look into using the package manager.
Was This Post Helpful? 1
  • +
  • -

#8 Guest_c.user*


Reputation:

Re: gui help

Posted 25 September 2010 - 07:02 PM

View PostDogstopper, on 26 September 2010 - 01:15 AM, said:

View Postc.user, on 25 September 2010 - 04:49 AM, said:

View PostSeta00, on 24 September 2010 - 01:11 AM, said:

I use and recommend wxPython, which is a modern, cross-platform GUI library.

how to install it to python 3.x ?
or pygtk ?


Installing Python

If you're on a Windows System, you will want to find your Python installation directory (Usually C:\Python**\)

On *NIX systems, look into using the package manager.

I use python 3.x, and there I have neither wxPython nor pygtk, except tkinter
I have python 2.x and it has already installed both packages (it can be done by standard package manager)

This post has been edited by c.user: 25 September 2010 - 07:03 PM

Was This Post Helpful? 0

#9 Dogstopper  Icon User is offline

  • The Ninjaducky
  • member icon



Reputation: 2874
  • View blog
  • Posts: 11,047
  • Joined: 15-July 08

Re: gui help

Posted 26 September 2010 - 07:35 AM

I believe I remember being able to set the "Standard" Python for your *NIX system. I remember that mine was 2.6 by default and that's where all the packages were installed. But I forgot how to change that. Look into adjusting that and use the package manager again.

If worse comes to worse, just
sudo cp ******** /usr/lib/python30/lib



where the asterisks are the files/folderss you want to capy and the destination is the python 3.0 lib directory.
Was This Post Helpful? 0
  • +
  • -

#10 Guest_c.user*


Reputation:

Re: gui help

Posted 26 September 2010 - 04:29 PM

I have python 2.6, wxPython and pygtk installed by rpm manager
site is telling (14-May-2010) wxPython 2.8.11.0 Adds Python 2.7 is latest

the wx module of python2.6 includes .py scripts written in python 2.x dialect, so I didn't try only to convert it by 2to3.py script, but I didn't try it because I guess it will not help to run wxPython on python 3.1 until the official site of wxPython release such version

with pygtk I have tryed too

I thought, perhaps, it is possible to compile wxPython from sources, I downloaded them, but their .py scripts written for python 2.x too

Dogstopper, I installed them to lib/python3.1/site-packages

This post has been edited by c.user: 26 September 2010 - 04:30 PM

Was This Post Helpful? 0

#11 Eric115  Icon User is offline

  • coderさん
  • member icon

Reputation: 63
  • View blog
  • Posts: 697
  • Joined: 19-January 09

Re: gui help

Posted 27 September 2010 - 09:23 PM

Quote

but is there a program that is just used to design the layout of the window so that i can do more accuret coding


If you mean using drag and drop GUI editing and then customizing before you start coding, PythonCard is what you need. I use PythonCard with Python 2.5 so I am not sure if it will work with 2.7 or 3.0. It is very good and uses wx so you can customize just about everything.
Also, you can edit the GUI from with in the python code, make your own dialogs or use the already made dialogs. It works very well and after a bit of work, I figured out how to make the program run without having the need for the .rsrc.py GUI file with the .py file.

This post has been edited by Eric115: 27 September 2010 - 09:24 PM

Was This Post Helpful? 0
  • +
  • -

Page 1 of 1