Open GoogleCodeExporter opened 9 years ago
I also don't have this file and directory.
Navigate to BlurOffline/python/tools/General_Use_Tools/_Examples/SampleTool/ui
Double-click on `sampletooldialog.ui'
Original comment by d...@bossalien.com
on 18 Jun 2012 at 11:49
Hello,
I broke the code down into smaller components to see what might be causing the
error.
Here is the code I wrote:
_______________________________
from blurdev.gui import Dialog
class SampleTool2Dialog( Dialog ):
def __init__( self, parent = None ):
super(SampleTool2Dialog,self).__init__( self, parent )
# load the ui
import blurdev
blurdev.gui.loadUi( 'C:/blur/dev/SampleTool2/sampletool2dialog.ui', self )
blurdev.launch( SampleTool2Dialog )
_______________________________
I get similar errors as the above when using:
"super(SampleTool2Dialog,self).__init__( self, parent )"
So I made some revision like so:
_______________________________
from blurdev.gui import Dialog
import blurdev
class SampleTool2Dialog( Dialog ):
def __init__( self, parent = None ):
Dialog.__init__( self, parent )
# load the ui
blurdev.gui.loadUi( 'C:/blur/dev/SampleTool2/sampletool2dialog.ui', self )
blurdev.launch( SampleTool2Dialog )
_______________________________
I also noticed if I put the actual location of the ui folder, I get an error.
Actual file location:
C:/blur/dev/SampleTool2/ui/sampletool2dialog.ui
Error:
IOError: [Errno 2] No such file or directory:
'C:/blur/dev/SampleTool2/ui/ui/sampletool2dialog.ui'
It puts an extra "ui" folder name before the ui file name automatically, so I
needed to get rid of it.
Is this the correct functionality?
Thank you.
Original comment by tak7yosh...@gmail.com
on 11 Sep 2012 at 4:31
Changing
super(SampleTool2Dialog,self).__init__( self, parent )
To this
super(SampleTool2Dialog,self).__init__()
Also solved my problem.
But still would like to hear a response in regards to the double ui.
Thanks again.
Original comment by tak7yosh...@gmail.com
on 11 Sep 2012 at 4:50
After further review, this worked too.
super(SampleTool2Dialog,self).__init__( parent )
Since this generated by the wizard, do you think it need a change.
Or am I using this incorrectly.
Best
Original comment by tak7yosh...@gmail.com
on 11 Sep 2012 at 9:10
I'm encountering this the same as the original Poster.
"Traceback (most recent call last):
File "C:\Python26\lib\site-packages\blurdev\ide\ideeditor.py", line 489, in documentExec
doc.exec_()
File "C:\Python26\lib\site-packages\blurdev\ide\documenteditor.py", line 213, in exec_
blurdev.core.runScript( self.filename() )
File "C:\Python26\lib\site-packages\blurdev\cores\core.py", line 657, in runScript
execfile(filename, scope)
File "C:\Users\ahosking\Dropbox\Git\LightBake\Python\Examples\Text\AlpexTest\main.pyw", line 26, in <module>
blurdev.launch( AlpexTestDialog )
File "C:\Python26\lib\site-packages\blurdev\__init__.py", line 128, in launch
widget = ctor( None )
File "c:\users\ahosking\dropbox\git\lightbake\python\examples\text\AlpexTest\alpextestdialog.py", line 16, in __init__
super(AlpexTestDialog,self).__init__( self, parent )
File "C:\Python26\lib\site-packages\blurdev\gui\dialog.py", line 29, in __init__
QDialog.__init__( self, parent )
RuntimeError: underlying C/C++ object has been deleted"
Fresh installs on two separate machines.
Both Windows 7 pro (x64)
This crash happens in the IDE standalone and when contained in 3ds Max.
Original comment by ahosk...@arcestra.com
on 24 Oct 2012 at 3:40
Original issue reported on code.google.com by
d...@bossalien.com
on 15 Jun 2012 at 10:47