Re: [Maya-Python] PyQt Resources and UI

2012-11-12 Thread Daz
Heya ah no I did not convert it, did not know I have to... will google it and try it cracking :) Thanks! On Monday, 12 November 2012 15:30:33 UTC, Justin Israel wrote: > > It is expecting to find your resource python file in the path, named > ResourcesQTRecomFarmhouseTools_rc.py > Either you n

Re: [Maya-Python] PyQt Resources and UI

2012-11-12 Thread Justin Israel
It is expecting to find your resource python file in the path, named ResourcesQTRecomFarmhouseTools_rc.py Either you named it something different when you converted it from the qrc file, or you forgot to convert it using pyrcc4 Also I would recommend using forward slashing for paths regardless o

Re: [Maya-Python] PyQt Resources and UI

2012-11-12 Thread Daz
Heya Its in pastebin at the very bottom. That whats I get nothing else. Copy here just in case :) # Error: No module named ResourcesQTRecomFarmhouseTools_rc # Traceback (most recent call last): # File "", line 20, in # File "C:\Program Files\Autodesk\Maya2013\Python\lib\site-packages\PyQt4\

Re: [Maya-Python] PyQt Resources and UI

2012-11-12 Thread Panupat Chongstitwattana
Would be helpful if you provide us with the error message you're getting. >From a quick look, are you getting an I/O Error: 2 or something similar? >From this line baseUI = "C:\Users\dmakowski\Desktop\PyQTtests\My\ui\ui6.ui" Text with backslashes usually get interpret into special characters. Y

Re: [Maya-Python] PyQt Resources and UI

2012-11-12 Thread Daz
Heya Just a little hiccup further down the line... tried googling it but nothing pop up... except this topic so pretty funny hehe :) Created resource container in QT for my logo widget... and I'm getting error when trying to start up the script... any idea how to add it to script? I try adding

Re: [Maya-Python] PyQt Resources and UI

2012-11-09 Thread Daz
Yup I know that just dont know how that can happen if I'm admin on my PC hehe :) Even running maya as admin dont help arrr... But naming correctly path worked ehhh... note for future, dont code at 2.00 in the morning whhh Thanks ! Sorry for wasting time :/ On Saturday, 10 November 2012 01:37:

Re: [Maya-Python] PyQt Resources and UI

2012-11-09 Thread Justin Israel
The last line of the traceback is a pretty good indication: # IOError: [Errno 13] Permission denied: 'D:/Scripts/Daz_Tools/Beta' # You have limited permissions on that location, which it is trying to read to parse your UI file. On Nov 9, 2012, at 5:28 PM, Daz wrote: > Heya > > Just run in to

Re: [Maya-Python] PyQt Resources and UI

2012-11-09 Thread Daz
Heya Just run in to weird issue... It works fine at work but not at home not, I did try to install python and other files the same as I did at work... Any idea why I get this error when starting script maybe? http://pastebin.com/ANuZ43a6 Thanks, bye. On Friday, 9 November 2012 17:36:22 UTC, J

Re: [Maya-Python] PyQt Resources and UI

2012-11-09 Thread Justin Israel
Awesome! May your button coding experience be dynamic, and rewarding! On Nov 9, 2012, at 9:19 AM, Daz wrote: > Uh true ! > > Here we go... just the part with self.btnCut button that I'm trying to add to > list that dont want to work... :/ > > > http://pastebin.com/vLuGfMcf > > On Friday, 9

Re: [Maya-Python] PyQt Resources and UI

2012-11-09 Thread Daz
Bah it works... cant believe I mist the spaces :/ thanks ! Off to code 30 buttons now... :] On Friday, 9 November 2012 17:25:37 UTC, Justin Israel wrote: > > Your second button is indented too far: > > # line 43 > self.btnCut.clicked.connect( self.btnCutClicked ) > > Dedent it one. > > > On Nov 9

Re: [Maya-Python] PyQt Resources and UI

2012-11-09 Thread Justin Israel
Your second button is indented too far: # line 43 self.btnCut.clicked.connect( self.btnCutClicked ) Dedent it one. On Nov 9, 2012, at 9:19 AM, Daz wrote: > Uh true ! > > Here we go... just the part with self.btnCut button that I'm trying to add to > list that dont want to work... :/ > > >

Re: [Maya-Python] PyQt Resources and UI

2012-11-09 Thread Daz
Uh true ! Here we go... just the part with self.btnCut button that I'm trying to add to list that dont want to work... :/ http://pastebin.com/vLuGfMcf On Friday, 9 November 2012 17:10:33 UTC, Justin Israel wrote: > > What are you using for an editor? It seems that you are just having > copy/

Re: [Maya-Python] PyQt Resources and UI

2012-11-09 Thread Justin Israel
What are you using for an editor? It seems that you are just having copy/paste errors and maybe a mixture of spaces vs tabs. Your best bet is to not use the emails for code. Make use of either pastebin.com, or https://gist.github.com/, or any online code site where people can look at a large amo

Re: [Maya-Python] PyQt Resources and UI

2012-11-09 Thread Daz
Heya Yay that runs like dream, I've edited beginning slightly to use my general folder structure and so on and so far I/you got the button working ! :) The steps start now that I want to hock up second button... for some reason I get error with this part of code... any hints why ? :/ # when c

Re: [Maya-Python] PyQt Resources and UI

2012-11-09 Thread Justin Israel
Wanted to point this out as well. The way you are calling super() needs a slight adjustment. #Original: class Ui_MainWindow(baseUIWidget, baseUIClass): def __init__(self,parent=None): super(baseUIWidget, self).__init__(parent) This is calling the super class of baseUIWidget, which me

Re: [Maya-Python] PyQt Resources and UI

2012-11-09 Thread Panupat Chongstitwattana
grr... forgot parentesis import daz reload(daz) daz.launch() -- view archives: http://groups.google.com/group/python_inside_maya change your subscription settings: http://groups.google.com/group/python_inside_maya/subscribe

Re: [Maya-Python] PyQt Resources and UI

2012-11-09 Thread Panupat Chongstitwattana
Don't rely on e-mails indenting :) Here, I uploaded the source to dropbox. Place both files together in your documents/maya/version/script directory https://www.dropbox.com/s/8brcnttgasz4gbm/daz.py https://www.dropbox.com/s/1k6ojz2ivthrh0f/ui3.ui Inside Maya, execute this import daz reload(daz)

Re: [Maya-Python] PyQt Resources and UI

2012-11-09 Thread Daz
Heya Right that sort of explains a lot ! I have to run few tests and try it out more in depth In any case I'm bit lost with ur explanation... I'm getting Unexpected indent in my __init__ function for some reason, I thought I can just type there anything I want to have in __ini__ as my tem

Re: [Maya-Python] PyQt Resources and UI

2012-11-09 Thread Panupat Chongstitwattana
Hey Daz. self.setupUI() < should use a small letter i. Sorry. self.seuoUi() On Fri, Nov 9, 2012 at 6:35 PM, Panupat Chongstitwattana wrote: > Hey Daz. > > No worry. I'm a newbie myself. Believe me, when I just started, I bombard > this group with tons of questions and everyone was very hel

Re: [Maya-Python] PyQt Resources and UI

2012-11-09 Thread Panupat Chongstitwattana
Hey Daz. No worry. I'm a newbie myself. Believe me, when I just started, I bombard this group with tons of questions and everyone was very helpful :) So first, the getMayaWindow() function is there to tell PyQt that the UI we're creating is a child of Maya's UI. Without it, your UI will still wor