Hi there everybody!

I'm currently working on improving my tool creation workflow and wanted to 
include images in my UI's. 

---------------------------------------------
TL,DR:
- Maya 2014
- PySide
- NOT pre-compiling ui-file, but using: pysideuic.compileUi()
- QRC (image resource) causing compilation error: 
    # Error: ImportError: file <string> line 49: No module named 
qrctest_qrc_rc # 
(Note: qrc-file is named; qrctest_qrc.qrc) (XML)
(Note2: The error is probably already caused from reading the 
implementation of a qrc resource in the ui file; qrctest_ui.ui) (XML)
----------------------------------------------

Right now I'm working with something similar to what Frederik Averpil has 
going on here; https://github.com/fredrikaverpil/pyVFX-boilerplate

Main difference is that I'm only focused on PySide (in combination with 
Maya 2014), so the 'boilerplate'-code that I'm using is a lot shorter.

Workflow is as follows; 
1) Create UI with QtDesigner
2) Copy and adept boilerplate code for the new project
3) Attach functionality to buttons etc.
4) Source in Maya & enjoy UI

This workflow breaks when I try to implement images through the resource 
browser (QRC-file) in QtDesigner.

Why this workflow?
By not having to pre-compile I can do fast iterations and don't have to 
hassle with copy-pasting compiled code. yay! Unfortunately the QRC just 
doesn't seem to work.

To test this, I created a small project:
-qrctest.py - http://pastebin.ubuntu.com/12306839/
-qrctest_ui.ui (XML)* - http://pastebin.ubuntu.com/12306896/
-qrctest_qrc.qrc (XML) - http://pastebin.ubuntu.com/12306884/

* There's a # at line 1 to prevent pastebin from complaining about 
web-stuff.

Has anybody got this working?

Kind regards,


Nico

-- 
You received this message because you are subscribed to the Google Groups 
"Python Programming for Autodesk Maya" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/python_inside_maya/c6627371-a7b9-403b-b13f-fa51eaf0cef4%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to