Lost Password?

Go Back   CodeCall Programming Forum > Software Development > Python

Python Discussion forum for Python, a high-level language with simple syntax, but yet powerful.

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 04-16-2008, 03:17 PM
Midnight Midnight is offline
Newbie
 
Join Date: Apr 2008
Posts: 4
Rep Power: 0
Midnight is on a distinguished road
Default Python Visual Interface

Hey there!
I'm Midnight, aka Riccardo, I'm n00b, new and italian, so don't expect much from me. I've 14 years and I've started "programming" with Python about two weeks ago, and I need help.
I followed some simple tutorial, and I realized come very simple programs too, like a Password Requester and a Contact Rubric.
Now, I'm using IDLE as IDE, and all my programs are just text. Now I'm tryin' to make them look better with Qt Designer and, well, I can design the form, and obtein the relative XML file. But how do I do to convert that XML file into python code? Thank you in advance.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

Sponsored Links
  #2 (permalink)  
Old 04-16-2008, 11:52 PM
v0id's Avatar   
v0id v0id is offline
Super Moderator
 
Join Date: Apr 2007
Location: Denmark
Posts: 2,408
Last Blog:
CherryPy(thon)
Rep Power: 27
v0id is a glorious beacon of lightv0id is a glorious beacon of lightv0id is a glorious beacon of lightv0id is a glorious beacon of lightv0id is a glorious beacon of lightv0id is a glorious beacon of light
Send a message via MSN to v0id
Default Re: Python Visual Interface

Well, I don't have any experience with Qt, but I'm pretty sure you don't need to convert the XML file you've got into Python code. You'll have to use some of Qt's functionality to load the XML file, and receive the design of the program. I don't know how to do this, as I've no experience with Qt, but you could check the documentation. And of course, you shall make sure you've installed Qt's libraries for Python.

Edit:
If you just want simple graphical user interfaces, you should check out Tkinter. It ships with Python, so you won't have to install third-party libraries. You can find lots of tutorial on it, and Python has a big official documentation for it. I think you should check it, and see if it fits your requirements.

Last edited by v0id; 04-17-2008 at 06:38 AM.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 04-17-2008, 09:36 AM
Midnight Midnight is offline
Newbie
 
Join Date: Apr 2008
Posts: 4
Rep Power: 0
Midnight is on a distinguished road
Default Re: Python Visual Interface

Well, for Qt probably ur right, but now I need to know what is the function to convert the XML. Maybe this phantomatic pyuic that I don't know what is???

For TKinter, I don't know because of its old fashoned graphic... There is a thing like Qt Designer, but for Tkinter?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 04-17-2008, 09:52 AM
v0id's Avatar   
v0id v0id is offline
Super Moderator
 
Join Date: Apr 2007
Location: Denmark
Posts: 2,408
Last Blog:
CherryPy(thon)
Rep Power: 27
v0id is a glorious beacon of lightv0id is a glorious beacon of lightv0id is a glorious beacon of lightv0id is a glorious beacon of lightv0id is a glorious beacon of lightv0id is a glorious beacon of light
Send a message via MSN to v0id
Default Re: Python Visual Interface

I found this using a single search on Google:
PyQT Tutorial
I think it's what you need. In the bottom you can see the three example files, and how everything is loaded together.

Good luck!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 04-17-2008, 01:21 PM
Midnight Midnight is offline
Newbie
 
Join Date: Apr 2008
Posts: 4
Rep Power: 0
Midnight is on a distinguished road
Default Re: Python Visual Interface

Thanks a lot... But I think I have another problem: when I type import qt in my python shell, I get an error message. Is it normal??

Last edited by Midnight; 04-18-2008 at 05:14 AM.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

Sponsored Links
  #6 (permalink)  
Old 04-18-2008, 04:49 AM
Midnight Midnight is offline
Newbie
 
Join Date: Apr 2008
Posts: 4
Rep Power: 0
Midnight is on a distinguished road
Default Re: Python Visual Interface

Edited

Last edited by Midnight; 04-18-2008 at 05:13 AM.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #7 (permalink)  
Old 04-19-2008, 12:56 AM
v0id's Avatar   
v0id v0id is offline
Super Moderator
 
Join Date: Apr 2007
Location: Denmark
Posts: 2,408
Last Blog:
CherryPy(thon)
Rep Power: 27
v0id is a glorious beacon of lightv0id is a glorious beacon of lightv0id is a glorious beacon of lightv0id is a glorious beacon of lightv0id is a glorious beacon of lightv0id is a glorious beacon of light
Send a message via MSN to v0id
Default Re: Python Visual Interface

Well, I guess you haven't installed PyQt properly.

You can get PyQt from the official website here:
Riverbank : PyQt : Overview

Or, if you're using a Debian-based Linux distribution, do like this:
$ sudo apt-get install python-qt4 python-qt4-dev python-qt4-doc pyqt4-dev-tools
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Visual Studio 2008: C# Hello World Tutorial Jordan CSharp Tutorials 4 08-22-2008 10:44 AM
Python Collection reachpradeep Python 1 03-03-2007 02:50 PM
Visual Studio 2005 and Windows Vista Jordan General Programming 3 01-22-2007 03:21 PM
Visual Studio 2005 Pro Won't Install CheeseBurgerMan Software Development Tools 10 09-22-2006 05:44 PM
Visual Studio 2005 Express Edition Crane Software Development Tools 9 05-25-2006 06:17 PM


All times are GMT -5. The time now is 09:18 PM.

Contest Stats

John ........ 223.00000
dargueta ........ 168.00000
Xav ........ 164.00000
gaylo565 ........ 18.00000
WingedPanther ........ 15.00000
|pH| ........ 15.00000
Johnnyboy ........ 3.00000
navghost ........ 1.00000

Contest Rules

CodeCall Goal

Goal: 100,000 Posts
Complete: 65%

Ads