|
||||||
| Python Discussion forum for Python, a high-level language with simple syntax, but yet powerful. |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
|
|||
|
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. |
| Sponsored Links |
|
|
|
|||||
|
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.
__________________
CodeCall Blog | CodeCall Wiki | Shareware | Linux Forum C/C++ resources - C/C++ frequently asked questions Python resources - Python frequently asked questions Last edited by v0id; 04-17-2008 at 06:38 AM. |
|
|||
|
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? |
|
|||||
|
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!
__________________
CodeCall Blog | CodeCall Wiki | Shareware | Linux Forum C/C++ resources - C/C++ frequently asked questions Python resources - Python frequently asked questions |
|
|||
|
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. |
| Sponsored Links |
|
|
|
|||||
|
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
__________________
CodeCall Blog | CodeCall Wiki | Shareware | Linux Forum C/C++ resources - C/C++ frequently asked questions Python resources - Python frequently asked questions |
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | Search this Thread |
| Display Modes | |
|
|
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 |
| John | ........ | 223.00000 |
| dargueta | ........ | 168.00000 |
| Xav | ........ | 164.00000 |
| gaylo565 | ........ | 18.00000 |
| WingedPanther | ........ | 15.00000 |
| |pH| | ........ | 15.00000 |
| Johnnyboy | ........ | 3.00000 |
| navghost | ........ | 1.00000 |
Goal: 100,000 Posts
Complete: 65%