[PyQt] qtablewidget multi cell editing
anyone know a way to select multiple cells and edit them, a la excel and other packages? Do i need to write custom code, or is this supported? -- CE ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt
Re: [PyQt] Function to open window and return user input
Is there a way to make this non modal? I am using Maya and we did not use exec because it always made the dialog application modal, as in it halts the main thread and doesn't allow users to interface with the parent app while the window is open. CE On Sun, Jan 22, 2012 at 4:27 PM, Hans-Peter Jansen h...@urpla.net wrote: On Friday 20 January 2012, 20:38:33 Christopher Evans wrote: QInput is designed to get a single input from a user. In my case, we are making a complex remapping dialog that takes two ordered lists as input, allows the users to change the order, then on dialog close, it should return the two re-ordered lists. That's called a modal dialog. Create it, exec_ it (look up QDialog::exec()), process data after close, and be done. Pete ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt -- CE ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt
Re: [PyQt] Function to open window and return user input
QInput is designed to get a single input from a user. In my case, we are making a complex remapping dialog that takes two ordered lists as input, allows the users to change the order, then on dialog close, it should return the two re-ordered lists. Thanks CE On Fri, Jan 20, 2012 at 10:10 AM, Phil Thompson p...@riverbankcomputing.com wrote: On Fri, 20 Jan 2012 01:52:26 +0100, Christopher Evans chris.ev...@gmail.com wrote: What's the best way to open a pyqt win and return user input? Kind of like with pyqt's built in simple windows (save, load, ok/cancel, etc). I would like to make a function that when run, pops a window open, then when closed, the fn resumes and returns some info based on user input. QInputDialog Phil -- CE ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt
[PyQt] Function to open window and return user input
What's the best way to open a pyqt win and return user input? Kind of like with pyqt's built in simple windows (save, load, ok/cancel, etc). I would like to make a function that when run, pops a window open, then when closed, the fn resumes and returns some info based on user input. Thanks, -- CE ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt
[PyQt] Refresh a treeWidget but not it's expand/collapse
What's the best way to refresh/rebuild a treeWidget without blowing away the user's depth traversal and framing? Anyone have a small fn for this? I guess you query the state of all leaves/branches of the treeWidget then reapply it? -- CE ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt
[PyQt] DynamicUILoader().loadUi crash only when inside a decorated function?
I am wrapping a tool in a decorator which just sends a mail with some info on throw, however, the UIC module doesn't seem to like this. File J:\data\Production\TechArt\Builds\Latest\Tools\CryMayaTools\CryRigging\rigTools\rigTools.py, line 29, in __init__ self.ui = uic.loadUi(uiPath) File J:\data\Production\TechArt\Builds\Latest\Tools\libs\PyQt4\uic\__init__.py, line 221, in loadUi return DynamicUILoader().loadUi(uifile, baseinstance) File J:\data\Production\TechArt\Builds\Latest\Tools\libs\PyQt4\uic\Loader\loader.py, line 50, in __init__ UIParser.__init__(self, QtCore, QtGui, LoaderCreatorPolicy()) File J:\data\Production\TechArt\Builds\Latest\Tools\libs\PyQt4\uic\uiparser.py, line 127, in __init__ self.factory = QObjectCreator(creatorPolicy) File J:\data\Production\TechArt\Builds\Latest\Tools\libs\PyQt4\uic\objcreator.py, line 91, in __init__ if load_plugin(open(filename), plugin_globals, plugin_locals): File J:\data\Production\TechArt\Builds\Latest\Tools\libs\PyQt4\uic\port_v2\load_plugin.py, line 47, in load_plugin raise WidgetPluginError(%s: %s % (e.__class__, str(e))) WidgetPluginError: : invalid syntax (, line 31) Here's what the decorator looks like; pretty simple: http://pastebin.com/zrdjCKfa -- CE ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt
[PyQt] Sourcing libs across network?
Anyone sourcing the pyqt libs from across a network (windows)? We have some weird errors, mainly when loading a UIC via the UIC module. # Error: type 'exceptions.SyntaxError': invalid syntax (string, line 31) # Traceback (most recent call last): # File maya console, line 1, in module # File \\fs1\TECHART\Tools\CryMayaTools\CryAnimation\retarget\retarget_tool.py, line 62, in module # form_class, base_class = uic.loadUiType(uiFile) # File \\fs1\TECHART\Tools\libs\PyQt4\uic\__init__.py, line 200, in loadUiType # winfo = compiler.UICompiler().compileUi(uifile, code_string, from_imports) # File \\fs1\TECHART\Tools\libs\PyQt4\uic\Compiler\compiler.py, line 55, in __init__ # CompilerCreatorPolicy()) # File \\fs1\TECHART\Tools\libs\PyQt4\uic\uiparser.py, line 127, in __init__ # self.factory = QObjectCreator(creatorPolicy) # File \\fs1\TECHART\Tools\libs\PyQt4\uic\objcreator.py, line 91, in __init__ # if load_plugin(open(filename), plugin_globals, plugin_locals): # File \\fs1\TECHART\Tools\libs\PyQt4\uic\port_v2\load_plugin.py, line 47, in load_plugin # raise WidgetPluginError(%s: %s % (e.__class__, str(e))) # WidgetPluginError: type 'exceptions.SyntaxError': invalid syntax (string, line 31) # -- CE ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt
[PyQt] Color characters in a qTreeWidgetItem
I would like to color specific characters in a tree widget item. I looked around a bit, any ideas? I can change all the text, this is what I am doing now, but I really need to just hilight different values int he string. -- CE ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt
[PyQt] QContextMenuEvent on a QTreeWidgetItem
Hi guys, I have been using pyqt for years at many different jobs and many different projects, however some things elude me. (I am a self-taught noob at heart) I have written many tutorials for the community to help spread knowledge, but this is one of the many things I myself have never found a good tutorial on: I just want to make a simple right click contextual menu on a treewidgetitem. Can anyone share a snippet showing this? Thanks! -- CE ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt