<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 TRANSITIONAL//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; CHARSET=UTF-8">
<META NAME="GENERATOR" CONTENT="GtkHTML/3.6.2">
</HEAD>
<BODY>
Hi<BR>
I'm pretty new to development with PyQt, and I have a couple of questions. I've followed a simple tutorial to create a basic application, but I've run into a snag regarding the toolbar icons.<BR>
The code that pyuic generated for my main frame looks like this:<BR>
<BR>
...<BR>
self.fileNewAction = QAction(self,"fileNewAction")<BR>
self.fileNewAction.setIconSet(QIconSet(QPixmap.fromMimeSource("filenew.png")))<BR>
self.fileOpenAction = QAction(self,"fileOpenAction")<BR>
self.fileOpenAction.setIconSet(QIconSet(QPixmap.fromMimeSource("fileopen.png")))<BR>
self.fileSaveAction = QAction(self,"fileSaveAction")<BR>
self.fileSaveAction.setIconSet(QIconSet(QPixmap.fromMimeSource("filesave.png")))<BR>
...<BR>
<BR>
The problem I have is that all of these images are in a folder called /images. If I modify this generated code, adding the path to the image file name, I can get these images to show up, but the next time I run pyuic, these modifications are overwritten.<BR>
<BR>
I haven't been able to find a way to tell either QT Designer nor pyuic where these images are located. What is the proper way to do this. I usually run pyuic from a bash script, and I've considered adding code to create symlinks to each of the images in the images folder, but that seems like a brute force solution. I also tried setting the sys.path in my derived class' constructor to include './images' but this didn't seem to work. Is there a "proper" technique to solve this problem?<BR>
<BR>
Thanks in advance!<BR>
Tim<BR>
<BR>
</BODY>
</HTML>