[prev in list] [next in list] [prev in thread] [next in thread]
List: pykde
Subject: [PyQt] How can I use resource file created by designer
From: bluekyu <bluekyu.dev () gmail ! com>
Date: 2012-02-17 4:54:15
Message-ID: 4F3DDD77.4070701 () gmail ! com
[Download RAW message or body]
Hello. I use python3 and PyQt 4.8. I have a problem about module import.
I created resource file using designer and then converted .ui to python
module using pyuic4.
I knew that ui module have "import rc_xxx", so I also converted .qrc to
rc_xxx.py using pyrcc4 -py3.
But my program use my python package, so "import rc_xxx" is not worked.
(ui module and rc module are in my python package directory)
I can use "from . import rc_xxx" syntax in ui module, or add my library
path to sys.path in my main source.
But I think these are not clear solutions.
Is there another solution for this problem? or
should I create resource file not using designer? (to use "from
my_package import rc_xxx" syntax in main source)
_______________________________________________
PyQt mailing list PyQt@riverbankcomputing.com
http://www.riverbankcomputing.com/mailman/listinfo/pyqt
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic