Re: [PyQt] Sqlite3 'database is locked' errors

2012-01-23 Thread Brian Zambrano
the setQuery call and simply ignore the unneeded columns from the view, everything works. BZ On Thu, Jan 19, 2012 at 11:24 PM, Brian Zambrano bri...@gmail.com wrote: In my application I have a Sqlite db which at times needs an updated schema. To work around some issues on Windows, I need

[PyQt] Sqlite3 'database is locked' errors

2012-01-19 Thread Brian Zambrano
In my application I have a Sqlite db which at times needs an updated schema. To work around some issues on Windows, I need to do drop table for each table. However, I'm continuously getting: database is locked Unable to fetch row after each DROP table table_name statement. There are no other

[PyQt] Overriding shouldInterruptJavaScript

2011-08-09 Thread Brian Zambrano
In my QWebPage, I'd like to override the shouldInterruptJavaScript method so that it ignores long running javascript warning. http://www.riverbankcomputing.co.uk/static/Docs/PyQt4/html/qwebpage.html#shouldInterruptJavaScript *Warning:* Because of binary compatibility constraints, this function

Re: [PyQt] QPainter warnings when resizing a QWebView element

2011-08-04 Thread Brian Zambrano
Bumping thisI'm still getting these warnings on resize events but otherwise my app seems normal. BZ On Fri, Jul 22, 2011 at 12:36 AM, Brian Zambrano bri...@gmail.com wrote: I'm attempting to use flot, a jquery/javascript plotting library to draw plots in a QWebView. Everything goes well

[PyQt] QPainter warnings when resizing a QWebView element

2011-07-22 Thread Brian Zambrano
I'm attempting to use flot, a jquery/javascript plotting library to draw plots in a QWebView. Everything goes well except that I need to resize the plot as the window resizes. I'm doing this in Javascript, of course. Once the resize occurs and my redraw callback fires, I get a warning over and

Re: [PyQt] Running a PyQt app compiled on OS X 10.6 on 10.5

2011-06-15 Thread Brian Zambrano
That worked perfectlythank you! For the benefit of this thread and as a side note, I needed to downgrade from XCode 4.0 to 3.X to get the 10.5 SDK. Once that was installed passing --deployment-target=10.5 did the trick. BZ On Wed, Jun 15, 2011 at 12:24 AM, Phil Thompson

[PyQt] Running a PyQt app compiled on OS X 10.6 on 10.5

2011-06-14 Thread Brian Zambrano
I have a PyQt app which I compile into a binary with py2app (latest stable versions of sip and PyQt [commercial]). I recently upgraded my build machine from OSX 10.5 to 10.6. The binaries built on my new 10.6 system won't even start up on 10.5: 6/13/11 10:36:35 AM com.apple.launchd[73]

[PyQt] Error building PyQt 4.8.1 as universal on OS X 10.5.8

2010-12-17 Thread Brian Zambrano
Building a universal version of my commercial PyQt has worked for me in the past with these steps: sip: $ python configure.py --universal $ make sudo make install PyQt: $ python configure.py --confirm-license $ make sudo make install I just upgraded to Qt 4.7, and am trying to build PyQt

Re: [PyQt] Selecting the last added item in a QAbstractTableModel

2010-09-08 Thread Brian Zambrano
You can do this with setCurrentIndex in the view. You'll simply need to select an index in the row you just added. http://www.riverbankcomputing.co.uk/static/Docs/PyQt4/html/qabstractitemview.html#setCurrentIndex In your case, it may be something like: # assume you have a reference to the view

Re: [PyQt] restoreState not working for QDockWidgets

2009-11-18 Thread Brian Zambrano
initializations, everything works as expected. Thanks for the push on this oneit obviously helped. BZ On Thu, Nov 12, 2009 at 7:40 AM, Brian Zambrano bri...@gmail.com wrote: Hi guys, I hear ya...it's something I've found a bit hard with GUI programming. The code gets quite large and involved, so

Re: [PyQt] restoreState not working for QDockWidgets

2009-11-12 Thread Brian Zambrano
The relevant pieces are basically this...have the main window save state when it closes. On startup, the main window passes itself to a QSettings wrapper where the state should be restored. The resize works just fine, the dock widgets states do not work: class MyMainWindow(QMainWindow):

Re: [PyQt] restoreState not working for QDockWidgets

2009-11-12 Thread Brian Zambrano
Hi guys, I hear ya...it's something I've found a bit hard with GUI programming. The code gets quite large and involved, so boiling it down to a self contained example demonstrating the issue takes some work. But, I agree it's worth doing and the issue very well may be solved during that

[PyQt] Re: restoreState not working for QDockWidgets

2009-11-11 Thread Brian Zambrano
Anyone have any advice on this? BZ On Sun, Nov 8, 2009 at 8:29 PM, Brian Zambrano bri...@gmail.com wrote: In my mainwindow, I'm calling saveState and restoreState. This is working like a charm for the main window's geometry. However, the three dock widgets contained in the main window

[PyQt] restoreState not working for QDockWidgets

2009-11-08 Thread Brian Zambrano
In my mainwindow, I'm calling saveState and restoreState. This is working like a charm for the main window's geometry. However, the three dock widgets contained in the main window are reset in between sessions. I've made sure to name all of the dock widgets uniquely, but no luck.

Re: [PyQt] Read-only QSqlRelationalTableModel

2009-08-24 Thread Brian Zambrano
Perfectsetting the flags did the job. I have a very simple subclass that overrides flags: def flags(self, index): return Qt.ItemIsSelectable | Qt.ItemIsEnabled Thank you! BZ On Mon, Aug 24, 2009 at 2:56 AM, Sibylle Koczian sibylle.kocz...@t-online.de wrote: Brian Zambrano

[PyQt] Read-only QSqlRelationalTableModel

2009-08-23 Thread Brian Zambrano
Is there a way to create a read-only QSqlRelationalTableModel? From the docs, I'm thinking that I need to create my own subclass of QSqlQueryModel which follow the relationships that I need. Thanks, BZ ___ PyQt mailing list

[PyQt] QtNetwork not working after update to PyQt 4.5.4

2009-08-18 Thread Brian Zambrano
This is a curious issueI have two Macs, both of which I've upgradef from PyQt 4.5.1 to 4.5.4. Running my application on my MacMini was just fine this morning. Just now, I fired up the exact same code on the MacBook Pro for the first time after the PyQt update and the QtNetwork calls seem to

[PyQt] Re: QtNetwork not working after update to PyQt 4.5.4

2009-08-18 Thread Brian Zambrano
, 2009 at 12:16 PM, Brian Zambrano bri...@gmail.com wrote: This is a curious issueI have two Macs, both of which I've upgradef from PyQt 4.5.1 to 4.5.4. Running my application on my MacMini was just fine this morning. Just now, I fired up the exact same code on the MacBook Pro for the first

[PyQt] Stacking QDockWidgets programatically

2009-08-05 Thread Brian Zambrano
Hi all, I like the way QDockWidgets can be stacked on top of each other and selected with the QTabBar which is created. This is just fine when I manually drag the dock widgets on top of each other, but I'd like my app to start up in this state. Is there a way to get one or more dock widgets to

Re: [PyQt] Stacking QDockWidgets programatically

2009-08-05 Thread Brian Zambrano
Wow...I completely overlooked tabifyDockWidget in the docs.  Works perfectly...thank you! BZ On Wed, Aug 5, 2009 at 12:33 AM, tabish shaikh tabish_shaikh...@yahoo.com wrote: try tabifyDockwidget in the __init__ function.. check the Qt assistant for tabify of the dockwidget in QMainWindow

[PyQt] Breaking the authenticationRequired loop in QNetworkAccessManager

2009-08-05 Thread Brian Zambrano
Hi all, I'm working with a webservice which requires a valid username/password. From PyQt, I'm accessing the webservice using QNetworkAccessManager which emits the authenticationRequired (QNetworkReply*, QAuthenticator*) signal when (obviously), authentication is required. When I fill in the

Re: [PyQt] Re: question about resizing behavior

2009-07-07 Thread Brian Zambrano
Hi guys, I'm also working with PyQt and matplotlib, and reported some weird resize behavior on the matplotlib mailing list a few days ago. I dug around a bit and thought that something was going on with QtGui.qApp.processEvents(), but it's nice to see that someone actually took the time to