[PyQt] PyQt + Maya - copy/paste issue

2011-01-04 Thread Taylor Carrasco
I'm trying to copy text from Maya's script editor into a PyQt LineEdit (or any text widget for that matter). I've run into an interesting problem. If you run this widget outside Maya, you can copy/paste from Maya, into the line edit just fine. *Clipboard: text from script editor type: * However,

Re: [PyQt] Optimizing WebView display

2010-08-31 Thread Taylor Carrasco
Is the code available for us to take a look at for possible optimizations On Tue, Aug 31, 2010 at 9:09 AM, alanm wrote: > I wrote a small browser in PyQT4 using QWebView, of course. The browser > runs > well and does what I need, but when I deployed it to my thin clients, it > was > far to slow

[PyQt] PyQt errors on a QMainWindow

2010-08-31 Thread Taylor Carrasco
Using the following setup - Kubuntu w/ KDE python 2.6.4 PyQt 4.5.1 Qt 4.5.2 The window shows fine, but the stdout (I believe) is littered with the following - - - any suggestions on what this could mean? X Error of failed request: BadWindow (invalid Window parameter) Major opcode of failed requ

Re: [PyQt] Auto links in a QTextBrowser?

2010-08-30 Thread Taylor Carrasco
I'd imagine you'd have to do this yourself - it's one line of code, two including the if statement On Mon, Aug 30, 2010 at 12:31 PM, Martin Airs wrote: > Good day all, > > I wonder is it possible have a QTextBrowser automaticaly turn urls into > links > > ie. If I use a QTextBrowser as a main wi

Re: [PyQt] mov or image sequences in Pyqt

2010-07-15 Thread Taylor Carrasco
Hugo Léveillé wrote: > I asked the exact same question a week ago :) > > The answer was to use the Phonon module. Quicktime will play nativly under > OSX, but not under XP. Havent tested Win7 but heard the quicktime was > playing nativly so might be supported > > > > On Fri,

[PyQt] mov or image sequences in Pyqt

2010-07-15 Thread Taylor Carrasco
Not looking for anyone to write the code for me, just wondering if anyone has any success with this? I want to be able to use Pyqt to make a simple movie player, perhaps there is already functionality in widgets that do this? Thoughts? ___ PyQt mailing

[PyQt] PyQt Maya 2011

2010-06-17 Thread Taylor Carrasco
Has anyone successfully found a way to wrap Maya's windows in a way they can be minimized or can be pushed to the back? For instance, the script editor no longer has a minimize button on the top right and if bring up the script editor and click behind it on Maya's main canvas, the script editor st

[PyQt] QTreeWidgetItem - how to properly delete so tree.insertTopLevelItem(0, treeWidgetItem) works

2010-04-01 Thread Taylor Carrasco
My question is simple, I want to take the QTreeWidgetItems out of a tree, and reinsert them in a specific order. So far with custom classes I've been unable to succeed. I tried below to build a simple example of my issue but it errors out when I hit the "ReInsert" button, perhaps due to what I'm do

Re: [PyQt] QTreeWidget setItemWidget dissapears after drag & drop

2010-03-09 Thread Taylor Carrasco
Any idea how to keep the setItemWidget() after it's reparented ? ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt

[PyQt] QTreeWidget setItemWidget dissapears after drag & drop

2010-03-04 Thread Taylor Carrasco
I'm trying to keep a widget put into a QTreeWidgetItem after a reparent (drag and drop) using QTreeWidget.setItemWidget() But the result, if you compile the following code - is that the widget inside the QTreeWidgetItem disappears. Any idea why? What code would fix this (repopulate the QTreeWidget

Re: [PyQt] QTreeWidget invisible root item

2009-10-25 Thread Taylor Carrasco
was related to whether I should bother with this "invisible root node", attaching parenting my Maya root nodes under the invis root, or if I need to create my own, or if I should create one like you've shown. On Sun, Oct 25, 2009 at 2:48 AM, Baz Walter wrote: > Taylor Carra

[PyQt] QTreeWidget invisible root item

2009-10-23 Thread Taylor Carrasco
How do you add an invisible root item? I've tried just not setting the text, but that doesn't do the trick ;) item = QTreeWidgetItem(self.treeMain) self.treeMain.addTopLevelItem(item) ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.rive

Re: [PyQt] QTreeWidget - drag&drop help

2009-10-22 Thread Taylor Carrasco
I can't grab which QTreeItemWidget was dragged, and the QTreeItemWidget it was dragged onto (parented under). On Fri, Oct 23, 2009 at 6:38 AM, Baz Walter wrote: > Taylor Carrasco wrote: > >> For my QTreeWidget I'm still confused as to what to put in dropEvent() &g

Re: [PyQt] Table changed/modified method

2009-10-21 Thread Taylor Carrasco
I'm looking for the exact same thing (to be notified when an item hierarchy changes) - but the following signal - self.connect(self.treeMain, SIGNAL('itemChanged(QTreeWidgetItem *, int)'), self.onItemChanged) # changes on init only is not emitted when an item is reparented. is there a way to do t

Re: [PyQt] QTreeWidget - drag&drop help

2009-10-21 Thread Taylor Carrasco
For my QTreeWidget I'm still confused as to what to put in dropEvent() Again, I only have event.accept() so far, and I can't figure out what else I need to make sure the row I'm dragged get's put into the row it supposed to, just as if I had never written the custom event in the first place. d

[PyQt] QTreeWidget - drag&drop help

2009-10-20 Thread Taylor Carrasco
> Just trying to do some simple drag drop calls with a QTreeWidget and > getting nowheres > > What am I missing in dropEvent to get it to actually copy the tree data > into the new object? > Currently the dragged object disappears after being dragged onto a new top > level item, but doesn't sho

[PyQt] Re: GroupBox

2009-09-08 Thread Taylor Carrasco
This has nothing to do with Tables haha - sorry. On Wed, Sep 9, 2009 at 3:35 PM, Taylor Carrasco wrote: > In Python and Pyqt - I've got a simple class which instantiates a Label > class and a GroupBox class. > > Should passing the Groupbox to the Label upon creation should ma

[PyQt] QTableView

2009-09-08 Thread Taylor Carrasco
In Python and Pyqt - I've got a simple class which instantiates a Label class and a GroupBox class. Should passing the Groupbox to the Label upon creation should make the Groupbox the parent of Label? When I create the GroupBox it's fine, when I create the Label however - it appears distorted (or