Re: PyQtForSoftimage: QFileDialog

2012-10-20 Thread César Sáez
This is a work for a decorator, much simpler and clean ;-) On Fri, Oct 19, 2012 at 11:45 PM, Eric Thivierge wrote: > As a note I would recommend putting it in a try / finally statement to > ensure it gets set back even if part of it fails unless it does this > automatically: > > #Python > def la

Re: PyQtForSoftimage: QFileDialog

2012-10-19 Thread Eric Thivierge
As a note I would recommend putting it in a try / finally statement to ensure it gets set back even if part of it fails unless it does this automatically: #Python def launchFileBrowser(self): try: # suspend control hooks so our filedialog looks normal desktop = Application.Desk

Re: PyQtForSoftimage: QFileDialog

2012-10-19 Thread Tim Crowson
Had that same problem. Here's what your Python code might look like using the method Jo describes. This works for me. /def launchFileBrowser(self): # suspend control hooks so our filedialog looks normal desktop = Application.Desktop desktop.SuspendWin32ControlsHook()

Re: PyQtForSoftimage: QFileDialog

2012-10-19 Thread Stefan Kubicek
This is not just happening with PyQt, the default file dialog for fcurve import in the fcurve editor has a similar issue. On Fri, Oct 19, 2012 at 7:26 AM, César Sáez wrote: Hi list, I'm starting to use PyQtForSoftimage and I'm having some issues with a QFileDialog, it works but the dialog g

Re: PyQtForSoftimage: QFileDialog

2012-10-18 Thread César Sáez
Oh, so simple! :) Thanks On Fri, Oct 19, 2012 at 8:07 AM, jo benayoun wrote: > Hey Cesar, > there is no limitations nor bugs, its just softimage is setting new > controls to use its style and qt lets do. Use this and you should be safe. > > void > SuspendWin32ControlsHook

Re: PyQtForSoftimage: QFileDialog

2012-10-18 Thread jo benayoun
Hey Cesar, there is no limitations nor bugs, its just softimage is setting new controls to use its style and qt lets do. Use this and you should be safe. void SuspendWin32ControlsHook

PyQtForSoftimage: QFileDialog

2012-10-18 Thread César Sáez
Hi list, I'm starting to use PyQtForSoftimage and I'm having some issues with a QFileDialog, it works but the dialog get mixed with the softimage ones. Is there any way to make it work properly? Has something to do with model dialog limitations? Just a known issue? I'm just calling a QFileDialog.g