[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 o

Re: [PyQt] Help understanding a backtrace

2012-01-19 Thread Kovid Goyal
On Thu, Jan 19, 2012 at 05:32:49PM +, Phil Thompson wrote: > The current version of SIP made some changes to the the mapping between > Python and C++ objects. It might be worth trying a version without those > changes. You would need to backout the changes up to and including... > > http://www

Re: [PyQt] Help understanding a backtrace

2012-01-19 Thread Kovid Goyal
On Thu, Jan 19, 2012 at 06:24:41PM +0100, Erik Janssens wrote: > FYI, since PyQt 4.9 you don't need to disable the garbage > collector any more. > > When Python desides to delete a Qt object from a different > thread, PyQt delayes the deletion until that thread has > taken control. I know, I was

[PyQt] Solved! Re: Help needed to find a system/graphics related bug in my Music Notation Editor. (Little time and effort for you)

2012-01-19 Thread Nils
With much help from the Archlinux Mailing List (they all have Python3) I think I have found the problem and its solution. Fontscaling in the graphic area for different dpi than 96x96 is now forbidden. The fonts remain the same pixel size. You are still very welcome to try it out! I hope that ever

Re: [PyQt] Qtablewidget

2012-01-19 Thread Dodi Ara
for example, i have one file $ cat a tes $ so, the "test" fill in the one or more row or columns thanks, any help will be appreciate On 1/20/12, Dodi Ara wrote: > i wondering, how can i add from my files to table widget? > ___ PyQt mailing listPy

[PyQt] Function to open window and return user input

2012-01-19 Thread Christopher Evans
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, --

[PyQt] Qtablewidget

2012-01-19 Thread Dodi Ara
i wondering, how can i add from my files to table widget? ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt

Re: [PyQt] Help needed to find a system/graphics related bug in my Music Notation Editor. (Little time and effort for you)

2012-01-19 Thread Nils
One user reported back to me that this is is a resolution problem. > AFAIK, most Xorg drivers can detect the screen resolution (in dots per > inch) correctly. However they then "lie" about it and report 96x96 dpi, > whatever the real value is. (They do this to mimick Windows behaviour, > which alw

Re: [PyQt] Help needed to find a system/graphics related bug in my Music Notation Editor. (Little time and effort for you)

2012-01-19 Thread David Boddie
On Thu Jan 19 18:20:39 GMT 2012, Nils wrote: > Everything display related helps: I believe closed nvidia drivers > will shift the symbol. I tested it myself on ati and intel graphics, both > 32 and 64 bit and it looked good, both on Linux and Windows. Other users > with ati and intel GPU's had no

Re: [PyQt] Help needed to find a system/graphics related bug in my Music Notation Editor. (Little time and effort for you)

2012-01-19 Thread Nils
I forgot: If you have windows: download this zip https://github.com/nilsgey/Laborejo/zipball/master, extract it, cd Laborejo and run python3 gui/laborejo-qt.py Yes, running it from outside the "gui" dir is important! On Thu, 19 Jan 2012 19:20:39 +0100 Nils wrote: > Hello list! > > > For t

[PyQt] Help needed to find a system/graphics related bug in my Music Notation Editor. (Little time and effort for you)

2012-01-19 Thread Nils
Hello list! For those who have PyQt4 for Python3 installed: I have a software, a Music Notation Editor, that can start in a one-liner and I need to find a bug that only occurs on some systems. git clone git://github.com/nilsgey/Laborejo.git && cd Laborejo && ./laborejo-qt.sh This will downlo

Re: [PyQt] Building PyQT windows 7 64 bit QT 4.8.0

2012-01-19 Thread calin . hanchevici
Nico, In my case it seems that the QT distribution was corrupted. I am rebuilding QT now and see what happens. After installing the headers and the binaries for QT VS2010 32 bit, I was able to generate everything. Still got into linking errors when I used the 64 bit QT. Teodor On , Nico D

Re: [PyQt] Building PyQT windows 7 64 bit QT 4.8.0

2012-01-19 Thread Nico Dufort
Teodor, I ran into a similar error but on QtDeclarative while trying to build against an older version of Python under Linux. Never could get the build to work even though I was using the freshly installed sip, not the system one. Gave up as I was getting nowhere after a few days of trying and I

Re: [PyQt] Help understanding a backtrace

2012-01-19 Thread Phil Thompson
On Thu, 19 Jan 2012 22:24:56 +0530, Kovid Goyal wrote: > Hi all, > > I've recently started getting random segfaults in calibre on my dev machine > (linux 64bit sip-4.13.1 and PyQt4-4.9). I compiled everything with -ggdb > and > generated the following backtrace from a core dump (Only kept the top

[PyQt] Help understanding a backtrace

2012-01-19 Thread Kovid Goyal
Hi all, I've recently started getting random segfaults in calibre on my dev machine (linux 64bit sip-4.13.1 and PyQt4-4.9). I compiled everything with -ggdb and generated the following backtrace from a core dump (Only kept the top 15 calls) #0 removeFromParent (self=0x5f66cc0) at siplib.c:5265 #

Re: [PyQt] Building PyQT windows 7 64 bit QT 4.8.0

2012-01-19 Thread Phil Thompson
On Thu, 19 Jan 2012 09:16:19 -0500, Teodor Calin Hanchevici wrote: > Hi Phil, > > I doubt that this is the problem. I ran the following: Sorry, I mis-read your previous email. > C:\home\3rdparty\sources\PyQt-win-gpl-4.9>"C:\Python27\sip" -w -o -x > VendorID -t WS_WIN -x PyQt_OpenSSL -x PyQt_NoP

Re: [PyQt] Building PyQT windows 7 64 bit QT 4.8.0

2012-01-19 Thread Teodor Calin Hanchevici
Hi Phil, I doubt that this is the problem. I ran the following: C:\home\3rdparty\sources\PyQt-win-gpl-4.9>"C:\Python27\sip" -w -o -x VendorID -t WS_WIN -x PyQt_OpenSSL -x PyQt_NoPrintRangeBug -t Qt_4_8_0 -x Py_v3 -g -a QtNetwork.api -c C:\home\3rdparty\sources\PyQt-win-gpl-4.9\QtNetwork -b QtNetw

[PyQt] Can't get keyboard shortcuts to work

2012-01-19 Thread David Townshend
I can't get keyboard shortcuts to work with Qt.WidgetShortcut or Qt.WidgetWithChildrenShortcut context. It seems that nothing I do will trigger the action. Below is a sample class which is giving the problem. Can anyone point out where I am going wrong? class Widget(QtGui.QWidget): def __ini

Re: [PyQt] embedding pyqt into a CPP app

2012-01-19 Thread Phil Thompson
On Wed, 18 Jan 2012 21:04:35 -0800, Josh Stratton wrote: > I've seen a couple examples for compiling a CPP app into a > pyqt-loadable module such as > http://lynxline.com/qt-python-superhybrids/, but that still requires > compiling an existing application down to a C++ module. Is it > possible to

Re: [PyQt] Building PyQT windows 7 64 bit QT 4.8.0

2012-01-19 Thread Phil Thompson
On Wed, 18 Jan 2012 17:12:56 -0500, Teodor Calin Hanchevici wrote: > Hi Phil, > > I do have QGIS installed, and it comes with PyQT as well, however the > distribution is clean (the interpreter is not in the path and it is > installed in QGIS directory. I have renamed sip.exe from QGIS and tried >

[PyQt] accessing model's data of QListView

2012-01-19 Thread Panupat Chongstitwattana
I'm still a beginner and I can't figure this out from the documentations on my own :( I am using QSqlTableModel to access a table called "project". projectModel = QSqlTableModel() projectModel.setTable("project") projectModel.select() In projectModel, column(0) are the ID, column(1) are the name