Re: [PyQt] action group triggered signals

2011-01-26 Thread Scott Frankel
Phil, On Jan 26, 2011, at 11:48 AM, Phil Thompson wrote: On Wed, 26 Jan 2011 11:24:28 -0800, Scott Frankel > wrote: Hi all, What's the best way to connect an action group triggered signal? The following isn't working: self.connect(self.theActGroup, QtCore.SIGNAL(&quo

[PyQt] action group triggered signals

2011-01-26 Thread Scott Frankel
Hi all, What's the best way to connect an action group triggered signal? The following isn't working: self.connect(self.theActGroup, QtCore.SIGNAL("triggered(action)"), self.foo) I'm adding a QToolButton with mutually exclusive actions to a QToolBar. I must be missing some

Re: [PyQt] help: beforeUpdate QSqlRecord bus error

2010-08-23 Thread Scott Frankel
On Aug 23, 2010, at 2:18 PM, Baz Walter wrote: On 23/08/10 16:11, Scott Frankel wrote: Please excuse the re-post. I'm at a loss as to why executing a QSqlRecord object's count() or isEmpty() method results in a bus error crash. Suggestions would be greatly appreciated. i'

Re: [PyQt] help: beforeUpdate QSqlRecord bus error

2010-08-23 Thread Scott Frankel
Please excuse the re-post. I'm at a loss as to why executing a QSqlRecord object's count() or isEmpty() method results in a bus error crash. Suggestions would be greatly appreciated. Thanks! Hi all, Can anyone please help shed light on why methods performed on a QSqlRecord object w

[PyQt] help: beforeUpdate QSqlRecord bus error

2010-08-21 Thread Scott Frankel
Hi all, Can anyone please help shed light on why methods performed on a QSqlRecord object would cause bus error crashes? I'm trying to view data before it's written to my database. Connecting to my table model's beforeUpdate signal provides me with access to the QSqlRecord for the updat

[PyQt] query string from table model submitAll

2010-08-19 Thread Scott Frankel
Hi all, Is it possible to get the insert &/or update query statement from a QSqlRelationalTableModel's submitAll() operation? I'm looking for a way to get the query string from a table model's submitAll() method when a user invokes it to save data back to the database. I've found QSqlQu

Re: [PyQt] managing multiple db connections

2010-05-29 Thread Scott Frankel
DB access: http://www.linuxjournal.com/article/9602?page=0,0. Scott On May 29, 2010, at 3:12 AM, Colin McPhail wrote: Hi, On 28 May 2010, at 23:11, Scott Frankel wrote: Hi all, What's the best way to manage multiple database connections in an application? Specifically, how can I manag

[PyQt] managing multiple db connections

2010-05-28 Thread Scott Frankel
Hi all, What's the best way to manage multiple database connections in an application? Specifically, how can I manage which db connection is used for models, queries, &c.? The documentation says that multiple connections can be declared with a unique name for each on calling addDatabas

Re: [PyQt] Model/View programming

2010-05-06 Thread Scott Frankel
w, in the tableView. I want to hide row when the data is an empty string. I found that I can get the string with self.currentIndex().data().toString() so, I suppose that I have to find a way to modify the currentIndex 2010/5/6 Scott Frankel : On May 6, 2010, at 9:46 AM, Philippe Crave

Re: [PyQt] Model/View programming

2010-05-06 Thread Scott Frankel
On May 6, 2010, at 9:46 AM, Philippe Crave wrote: actually, I just want to loop over the rows. I do not find a max_row, or an iterator over the rows of a Table. Take a look at your model's rowCount() and record() methods. I think you'll want to be iterating over the records in your model,

Re: [PyQt] pausing and resuming QThread tasks

2010-04-19 Thread Scott Frankel
an you point me to a working version, i'm tring to learn from it. It is a cool example to learn how to use thread in PyQt Thanks a lot!!! Massimo. Il giorno 15/apr/2010, alle ore 22.24, Russell Valentine ha scritto: What about just put this in your for loop. Then the pause/resume butt

Re: [PyQt] pausing and resuming QThread tasks

2010-04-15 Thread Scott Frankel
toggles self.paused? That seems good to me. while(self.paused): QThread.msleep(100) On 04/15/10 13:53, Scott Frankel wrote: Hi all, What's the best way to pause and resume processing in QThread objects? I've built a small test app that sets up a Python os.walk() proc

[PyQt] pausing and resuming QThread tasks

2010-04-15 Thread Scott Frankel
Hi all, What's the best way to pause and resume processing in QThread objects? I've built a small test app that sets up a Python os.walk() process that I'd like to be able to pause and restart from where it left off. The documentation on QWaitCondition looks promising, though my app appe

Re: [PyQt] overriding QSqlRelationalTableModel's data method

2010-04-03 Thread Scott Frankel
On Apr 3, 2010, at 5:16 PM, Scott Frankel wrote: On Apr 2, 2010, at 5:05 PM, Scott Frankel wrote: I'm hoping to be able to adapt a QSqlRelationalTableModel object to display only specified item rows directly. Using the view's setRowHidden() method is proving clunky. Ap

Re: [PyQt] overriding QSqlRelationalTableModel's data method

2010-04-03 Thread Scott Frankel
On Apr 2, 2010, at 5:05 PM, Scott Frankel wrote: I'm hoping to be able to adapt a QSqlRelationalTableModel object to display only specified item rows directly. Using the view's setRowHidden() method is proving clunky. Apologies in advance for taking up more bandwidth with

Re: [PyQt] overriding QSqlRelationalTableModel's data method

2010-04-03 Thread Scott Frankel
On Apr 3, 2010, at 8:42 AM, Phil Thompson wrote: On Sat, 3 Apr 2010 08:28:07 -0700, Scott Frankel > wrote: On Apr 2, 2010, at 5:24 PM, Phil Thompson wrote: On Fri, 2 Apr 2010 17:05:15 -0700, Scott Frankel wrote: In my attempts so far, my model instance isn't calling its data(

Re: [PyQt] overriding QSqlRelationalTableModel's data method

2010-04-03 Thread Scott Frankel
On Apr 2, 2010, at 5:24 PM, Phil Thompson wrote: On Fri, 2 Apr 2010 17:05:15 -0700, Scott Frankel > wrote: In my attempts so far, my model instance isn't calling its data() method. (See attached.) Because you've added a data() method to your QWidget subclass. You need a

[PyQt] overriding QSqlRelationalTableModel's data method

2010-04-02 Thread Scott Frankel
Is it possible to override the data() method of a QSqlRelationalTableModel? In my attempts so far, my model instance isn't calling its data() method. (See attached.) I'm hoping to be able to adapt a QSqlRelationalTableModel object to display only specified item rows directly. Using the

Re: [PyQt] QSqlDatabase connection parameters

2010-03-19 Thread Scott Frankel
witch gears and look into multi-threading my data model loads and select() statements. Thanks for the suggestions! Much appreciated. Scott Russell Valentine On 03/19/10 15:29, Scott Frankel wrote: On Mar 19, 2010, at 12:24 PM, Russell Valentine wrote: Perhaps time each part to see

Re: [PyQt] QSqlDatabase connection parameters

2010-03-19 Thread Scott Frankel
On Mar 19, 2010, at 12:59 PM, Matt Newell wrote: On Friday 19 March 2010 12:06:12 Scott Frankel wrote: Hi all, Would anyone have any suggestions for improving QSqlDatabase PSQL connection performance? The Qt docs refer to PSQL connection options and demonstrate the "requiressl=1&quo

Re: [PyQt] QSqlDatabase connection parameters

2010-03-19 Thread Scott Frankel
s" Is it really the initial connection that takes a long time to get, or is it something else on that remote machine. work_mem has nothing to do with making a connection for example. On 03/19/10 14:06, Scott Frankel wrote: Hi all, Would anyone have any suggestions for improving QSq

Re: [PyQt] QSqlDatabase connection parameters

2010-03-19 Thread Scott Frankel
ds PSQL errors. I've optimized my working code further. Running from a local data set, launch times are down to 4 seconds. Running from an identical data set hosted remotely, my application launches in 40+ seconds! Thanks in advance! Scott On Mar 16, 2010, at 9:09 PM, Scott Fran

[PyQt] QSqlDatabase connection parameters

2010-03-16 Thread Scott Frankel
Hi all, Is there a buffer size or similar optimization parameter that can be set for QSqlDatabase PSQL connections? The docs refer to PostgreSQL "options" without specifying what they may be. I have a PG database cluster of about 7MB, spread over a couple dozen tables. Locally, it take

Re: [PyQt] Show selected rows

2010-03-16 Thread Scott Frankel
rows that are selected in the first QTableView (A). How do I achieve this? Ie, each selected row in view (A) should be displayed in view (B). Best regards, Mads -- +-+ | Mads Ipsen, Scientific developer

Re: [PyQt] signals and dialogs

2010-03-02 Thread Scott Frankel
On Mar 2, 2010, at 11:56 AM, wrote: Your code is not going to work. You are trying to connect to a signal that has already been emitted. For this to work, you need to manually call emitSignal AFTER you create your Foo() Dialog. Of course. Thanks! __

[PyQt] signals and dialogs

2010-03-02 Thread Scott Frankel
Hi all, How does one connect dialogs to a parent object to receive any signals they may emit? This doesn't work: dialog = Foo() self.connect(dialog, QtCore.SIGNAL("foo(string)"), self.printString) The attached code sample creates a dialog that emits a signal

[PyQt] QSqlRelationalTableModel and section locators

2010-02-02 Thread Scott Frankel
Hi all, Are there any other ways to specify a table model's section position, other than by using the db schema's column order? I'm referring to methods like: bool QSqlQueryModel::setHeaderData ( int section, Qt::Orientation orientation, const QVariant & value, int role = Qt::EditRole )

Re: [PyQt] QSettings error on Windows

2009-11-16 Thread Scott Frankel
On Nov 14, 2009, at 12:07 PM, Hans-Peter Jansen wrote: On Saturday 14 November 2009, 19:35:28 Scott Frankel wrote: Hi, I've put together a simple test app that demonstrates the problem I'm having with QSettings.value() INT arguments on Windows. An invalid argument type error caus

Re: [PyQt] QSettings error on Windows

2009-11-14 Thread Scott Frankel
f.dbHost: ", self.dbHost print "self.dbPort: ", self.dbPort if __name__ == "__main__": app = QtGui.QApplication(sys.argv) mainwindow = MainWindow() mainwindow.show() sys.exit(app.exec_()) On Nov 10, 2009, at 1:12 AM, Scott Frankel wrote: Hi, I'm get

[PyQt] QSettings error on Windows

2009-11-10 Thread Scott Frankel
Hi, I'm getting a fatal error from the following QSettings line on Windows. But on Mac OSX, the same code runs without error. The exe log file says that argument 2 of settings.value() has an invalid type. That'd be my int. The first line of the method reads a string value. That appea

Re: [PyQt] default action names

2009-10-23 Thread Scott Frankel
operating system, thus my code sample didn't "silently fail." Thanks for the links! Scott On Oct 23, 2009, at 10:07 AM, Baz Walter wrote: Scott Frankel wrote: > Very strange. I've double-checked that the code I emailed does not work for me. I'm on OSX 10.5.8, Q

Re: [PyQt] default action names

2009-10-22 Thread Scott Frankel
On Oct 22, 2009, at 2:55 PM, Baz Walter wrote: Scott Frankel wrote: On Oct 22, 2009, at 10:57 AM, Baz Walter wrote: Scott Frankel wrote: Does a QMainWindow, or an app based on, one contain a list of default action names? I'm trying to add an action called "Settings"

Re: [PyQt] default action names

2009-10-22 Thread Scott Frankel
On Oct 22, 2009, at 10:57 AM, Baz Walter wrote:Scott Frankel wrote:Does a QMainWindow, or an app based on, one contain a list of default action names?I'm trying to add an action called "Settings" to my app.  The addAction() method silently fails unless I rename or misspell the action, like "Foo" or

[PyQt] default action names

2009-10-22 Thread Scott Frankel
Hi, Does a QMainWindow, or an app based on, one contain a list of default action names? I'm trying to add an action called "Settings" to my app. The addAction() method silently fails unless I rename or misspell the action, like "Foo" or "Setttings." Actions named "Settings", "Preferen

Re: [PyQt] QLibraryInfo and images

2009-10-13 Thread Scott Frankel
On Oct 13, 2009, at 1:35 PM, Hans-Peter Jansen wrote: Am Dienstag 13 Oktober 2009 schrieb Scott Frankel: Hi Scott, you might try the pyinstaller svn version. It did quite some progress lately. There might still some issues left with plugins, but they can be resolved easily. My mac

Re: [PyQt] QLibraryInfo and images

2009-10-13 Thread Scott Frankel
Hi David, Thanks for considering my question. On Oct 5, 2009, at 5:58 PM, David Boddie wrote: On Thu, 1 Oct 2009 23:04:49 -0700, Scott Frankel wrote: Can a qt.conf file be used to specify an images directory using the QLibraryInfo.LibraryLocation enum? Maybe you could use the Data entry

Re: [PyQt] QLibraryInfo and images

2009-10-02 Thread Scott Frankel
Solved. Turned out to be another case of dependent libs in the wrong location of my osx package build. On Oct 1, 2009, at 11:04 PM, Scott Frankel wrote: Hi, Can a qt.conf file be used to specify an images directory using the QLibraryInfo.LibraryLocation enum? I wonder if I&#

[PyQt] QLibraryInfo and images

2009-10-01 Thread Scott Frankel
Hi, Can a qt.conf file be used to specify an images directory using the QLibraryInfo.LibraryLocation enum? I wonder if I'm barking up the right tree. My app displays images that have been compiled as resources (.png, .tif, or .jpg) without issue on Fedora and Windows. But it doesn't di

[PyQt] QSqlRelationalDelegate and sizeHint

2009-09-09 Thread Scott Frankel
Hello, What's the best way to explicitly set row and column sizes for a QTableView? I'm trying to use an QSqlRelationalDelegate, but print statements show that its sizeHint() method is never called. The paint() method is. If I set the editable model methods, I lose the FK comboBoxes.

Re: [PyQt] QSql lastError() must be called BEFORE exec_() ??

2009-09-04 Thread Scott Frankel
On Sep 4, 2009, at 1:23 PM, Mario Daniel Carugno wrote: Hi list, i'm coding my first PyQt4-Sql application, and i can't understand a strange behavior. I'll write a snippet of code with an erroneous Sql syntax, and i hope then to catch the error text and display it, in order to know what happene

[PyQt] QSqlTableModel setFilter

2009-08-29 Thread Scott Frankel
Is there a way to have the QSqlTableModel.setFilter() method accept "where exists" clauses? According to the documentation, the setFilter method sets a "where" clause without the "where" keyword. I have a situation in which setting a "where exists" clause would be the ideal solution. T

Re: [PyQt] QTreeWidget and item parents

2009-08-27 Thread Scott Frankel
elative to branch parent NEW>>>print "parent", index.parent() Cheers - jamie On Thu, Aug 27, 2009 at 8:46 AM, Scott Frankel wrote: Hello, How would one identify the parent of a selected item in a QTreeWidget? I have a tree with several branches. Each branch contains

[PyQt] QTreeWidget and item parents

2009-08-27 Thread Scott Frankel
Hello, How would one identify the parent of a selected item in a QTreeWidget? I have a tree with several branches. Each branch contains leaves with the same names. (See attached sample code.) I'd like to be able to identify that the leave item selected, say "Bbbb," was picked from bran

[PyQt] cannot move to target thread

2009-08-25 Thread Scott Frankel
Hello, Pardon the cross-post and tangential subject matter. My PyQt-QPSQL app dies on OSX, yielding the following error: "Cannot move to target thread." Linux and Windows builds behave properly. I've rebuilt my macports environment from scratch, googled myself silly, and poked and pr

[PyQt] QSqlRelationTableModel default values

2009-08-14 Thread Scott Frankel
Hello, What's the proper way to set default values for a relational table model when adding a new row? The documentation for setData() says that for relational columns, the value must be the index, not the display value. Yet when I do this, the table view displays the numeral rather tha

[PyQt] lastQuery() from an QSqlRelationalTableModel

2009-08-13 Thread Scott Frankel
Hello, How can I view the last query submitted to an QSqlRelationalTableModel instance? I'm trying to debug a data-widget mapped form's submitAll() that is not storing one of it's mapped members. I've made numerous stabs at things like: theQuery = QtSql.QSqlQueryModel.qu

Re: [PyQt] QTreeWidget itemAt question

2009-07-21 Thread Scott Frankel
Scott Doug. ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt Scott Frankel President/VFX Supervisor Circle-S Studios www.circlesfx.com 510-339-7477 (o) 510-332-29

[PyQt] QTreeWidget itemAt question

2009-07-21 Thread Scott Frankel
Hello, What's the proper way to use QTreeWidget's itemAt() method? I'm passing incrementing int values to it, yet it only returns the tree's root item. eg: for ii in range(self.treeRowCount): item = self.theTree.itemAt(0, ii) yields: ii:

[PyQt] QDataWidgetMapper and default values

2009-07-05 Thread Scott Frankel
Hello, Is there a way to specify a default value for a Data Widget Mapper if a user leaves a mapped field empty? The mapper appears to ignore the db schema's default declarations. Ideally, I'd like to insert Null. Something analogous to this: test=# INSERT INTO gear (name, ad

Re: [PyQt] Tutorials - making standalone apps on Windows and OS X from PyQt4 apps.

2009-06-11 Thread Scott Frankel
Thanks for sharing the tutorial.  In my case, it's quite timely.Would you have any suggestions for including sqldriver support in an py2app project?  I still have not gotten that to work and haven't found relevant info in my searches.  (Reference my email to the list:  "QPSQL and py2app" on 2009-09

[PyQt] QPSQL and py2app

2009-06-09 Thread Scott Frankel
Hello, What's the best way to declare sqldrivers in a py2app setup.py file? I'm in the throes of building my app for OSX, using py2ap for the first time. One of the issues I'm still facing is how to include PostgreSQL support and the QPSQL driver in the build process. I'm building using

Re: [PyQt] QAction menu questions

2009-06-03 Thread Scott Frankel
Hello David & Darryl, On Jun 3, 2009, at 7:22 AM, dbod...@trolltech.com wrote: On Wed Jun 3 13:28:15 BST 2009, Darryl Wallace wrote: Is there an example someone could point me to that demonstrates how to specify the About Menu and item name, changing them from "Python" and "About Python

Fwd: [PyQt] QAction menu questions

2009-06-02 Thread Scott Frankel
Is there an example someone could point me to that demonstrates how to specify the About Menu and item name, changing them from "Python" and "About Python to "MyApp" and "About MyApp?"My searches are coming up empty.Thanks in advance!ScottBegin forwarde

[PyQt] QAction menu questions

2009-05-30 Thread Scott Frankel
How does one set an app's About (help) menu to display the app's name, rather than "Python." In addition, I'd like to have the menu's aboutAction item and the exitAction item display my app name as well. They currently display "About Python" and "Quit Python," respectively. Interesting

Re: [PyQt] string printing question

2009-05-15 Thread Scott Frankel
...@riverbankcomputing.com] On Behalf Of Scott Frankel Sent: Thursday, May 14, 2009 9:02 PM To: pyqt@riverbankcomputing.com Subject: [PyQt] string printing question How does one convert from QString and QBytArray values to plain ascii strings for printing? I would like to print plain ascii text to

[PyQt] string printing question

2009-05-14 Thread Scott Frankel
How does one convert from QString and QBytArray values to plain ascii strings for printing? I would like to print plain ascii text to a file, based on values I glean from QLineEdit and QDateEdit fields. eg: self.theLineEdit = QtGui.QLineEdit() self.theDateEdit = QtGui.Q

[PyQt] QSqlRelationalDelegate and table id's

2009-05-07 Thread Scott Frankel
Hello, Is there a way to test for SQL table ID numbers in an QSqlRelationalDelegate.paint() method? The attached example app paints a background color on specific rows of a QTableView, by overriding an QSqlRelationalDelegate.paint() method. I pass the row numbers to paint() in a list th

[PyQt] sql database questions

2009-02-24 Thread Scott Frankel
After reading the documentation and working through example code, I'm still left with a number of questions regarding how to add, close, and remove databases. Although my app appears to be working properly, I'm getting an error msg that I'd like to understand and clean up: QSqlDatabaseP

[PyQt] connection pointer is NULL

2009-01-15 Thread Scott Frankel
Hello, Does the following message ring any bells? Unable to free statement: connection pointer is NULL I seem to be getting it sporadically and it appears to prevent entries to be written to my database. I've searched the Qt, PyQt, and PostgreSQL sites. Only references I found add

Re: [PyQt] qlistview and finditem

2008-12-01 Thread Scott Frankel
On Dec 1, 2008, at 10:51 PM, Milan Hemžal wrote: hi, i'm learning PyQt and cannot find how create: a=["1Test1","2Test1","3Test1","4Test1","5Test1"] def __init__(self): QtGui.QDialog.__init__(self) app.connect(self.lv_find,QtCore.SIGNAL("textEdited ( const QString & )"),sel

Re: [PyQt] QTableView selected item signals via QItemSelectionModel

2008-11-19 Thread Scott Frankel
M, Andreas Pakulat wrote: On 19.11.08 12:56:59, Scott Frankel wrote: Hello, What's the proper way to identify which row of a QTableView instance a user may have selected? Pouring through the docs, and web searches, I think I've gotten close by listening for signals from a

[PyQt] QTableView selected item signals via QItemSelectionModel

2008-11-19 Thread Scott Frankel
Hello, What's the proper way to identify which row of a QTableView instance a user may have selected? Pouring through the docs, and web searches, I think I've gotten close by listening for signals from a QItemSelectionModel instance. I'm still missing something though, as my implementat

[PyQt] PyQt and Qt build and install overview

2008-09-26 Thread Scott Frankel
I've just upgraded PyQt & Qt versions and took the opportunity to document the process. While there's no substitute for the detailed build and installation instructions that come with each package in their README files, I find that a simple list is a handy companion. To that end, and to

[PyQt] QSqlTableModel and complex queries

2008-09-25 Thread Scott Frankel
Hello, What's the proper way to perform sql SELECT statements to populate a table model, when the statement is more complex than select(), filters, and order clauses can handle? According to the Qt documentation, QSqlTableModel.setQuery should "normally" not be called on a QSqlTableMode

Re: [PyQt] QDialog window buttons

2008-09-12 Thread Scott Frankel
Doug Bell wrote: Scott Frankel wrote: Is there a flag, property, or hint that can be invoked on a QDialog to have it display its window's dismiss/minimize/maximize buttons? setWindowFlags(QtCore.Qt.Window) (inherited from QWidget) Doug. ___ PyQt

[PyQt] QDialog window buttons

2008-09-11 Thread Scott Frankel
Hello, Is there a flag, property, or hint that can be invoked on a QDialog to have it display its window's dismiss/minimize/maximize buttons? Thanks Scott ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcomputing.com

Re: [PyQt] table model and pixmap

2008-09-09 Thread Scott Frankel
Hello, If anyone has an idea on how to resolve the buggy delegate behavior I mention below, I'd great appreciate it! Thanks! Scott On Sep 9, 2008, at 10:03 AM, Scott Frankel wrote: Hello, Looking at documentation for the QSqlRelationalDelegate class, I've hacked my way

Re: [PyQt] table model and pixmap

2008-09-09 Thread Scott Frankel
editor, model, index) On Sep 8, 2008, at 9:56 PM, Scott Frankel wrote: Hello, Can anyone point me to documentation &/or examples for setting pixmaps in a table view that gets its data from a table model? I h

[PyQt] table model and pixmap

2008-09-08 Thread Scott Frankel
Hello, Can anyone point me to documentation &/or examples for setting pixmaps in a table view that gets its data from a table model? I have a table view I populate from a QSqlRelationalTableModel instance. One of the model's data fields is an absolute path to small thumbnail images on d

Re: [PyQt] data widget mapper not committing

2008-09-02 Thread Scott Frankel
x27;ll dig through the pg list archives for any references to this problem. Thanks! Scott On Sep 1, 2008, at 11:41 PM, simone wrote: Scott Frankel ha scritto: Am I missing something obvious? I've tried to peek inside using queryModel.lastError(), but it's returning a memor

[PyQt] data widget mapper not committing

2008-09-01 Thread Scott Frankel
Hi, I have a form in which I use a QDataWidgetMapper object. When I try to submit values from the form back to the DB, no data gets written. However, mapping field values from my DB to the widgets on the form behaves flawlessly. (See attached source code file. The Postgresql schema fo

[PyQt] style sheets, sliders and buttons

2008-08-29 Thread Scott Frankel
--- self.connect(self.searchList, QtCore.SIGNAL("itemSelectionChanged()"), self.searchItem) self.connect(self.yesButton, QtCore.SIGNAL("clicked()"), self.yes) self.connect(self.noButton, QtCore.SIGNAL("clicked()"), self.no) # methods # def yes(self): print "yes() ..." d

Re: [PyQt] QDirModel instance

2008-07-21 Thread Scott Frankel
Hello, I'm having trouble getting checkboxes to work properly when I use a sub-classed QDirModel and CheckStateRole in data(). The app's checkboxes don't appear to respond to mouse-clicks. (Although their states are changing, as I've verified in the model.) If anyone has a moment to ex

Re: [PyQt] setEditTriggers

2008-07-20 Thread Scott Frankel
Andreas -- You will be married within a year, and divorced within two. ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt Scott Frankel President/VFX Supervisor Circle-S Studios 510-339

Re: [PyQt] setEditTriggers

2008-07-19 Thread Scott Frankel
gain)! Still wrapping my head around MVC tree widgets. Scott On Jul 19, 2008, at 6:19 PM, Scott Frankel wrote: Hello, How does one allow the fields of a tree to be editable? I've read that items of a tree widget are not editable by default. By setting setEditTriggers(), one

[PyQt] setEditTriggers

2008-07-19 Thread Scott Frankel
Hello, How does one allow the fields of a tree to be editable? I've read that items of a tree widget are not editable by default. By setting setEditTriggers(), one can control editability. That gets set on the view, right? I've got a pure model that the view gets set to. Is there som

Re: [PyQt] QSqlRelationTableModel question

2008-07-14 Thread Scott Frankel
On Jul 14, 2008, at 8:02 AM, simone wrote: Scott Frankel ha scritto: I've seen the subclassed model's internal select statement, using model.selectStatement(). I'm hoping to not have to re-implement that mess by hand in a hundred custom queries ;) Have you tried,

[PyQt] QSqlRelationTableModel question

2008-07-14 Thread Scott Frankel
Hello, Is it possible to specify the (Postgre)SQL keyword "ONLY" when subclassing QSqlRelationTableModel? My db schema currently uses a mechanism that requires that my select statements declare "ONLY" in order to return valid records. eg: SELECT * FROM ONLY foo; I've seen the s

Re: [PyQt] QDirModel instance

2008-07-11 Thread Scott Frankel
self .emit(QtCore.SIGNAL("dataChanged(QtCore.QModelIndex,QModelIndex)"), index, index) return True return QtGui.QDirModel.setData(self, index, value, role) On Jul 10, 2008, at 2:39 PM, Scott Frankel wrote: Fabulous! On Jul 10, 2008, at 2

Re: [PyQt] QDirModel instance

2008-07-10 Thread Scott Frankel
Fabulous! On Jul 10, 2008, at 2:08 PM, Andreas Pakulat wrote: On 10.07.08 11:46:36, Scott Frankel wrote: Right. Thanks for pointing out that I still need to explicitly pass "self." I'm still not getting checkboxes displayed in the tree widget, though. I believe the pr

Re: [PyQt] QDirModel instance

2008-07-10 Thread Scott Frankel
es[self.fileInfo(index).absoluteFilePath()] # <-- problem??? return QtGui.QDirModel.data(self, index, role) Thanks in advance for your suggestions! Scott On Jul 9, 2008, at 11:36 PM, Phil Thompson wrote: On Wed, 9 Jul 2008 22:39:27 -0700, Scott Frankel <[EMAIL PROTECTED] &g

[PyQt] QDirModel instance

2008-07-09 Thread Scott Frankel
Hello, I just joined this list and am new to PyQt (and Qt). I've scanned the archives, but I'm not sure even what I'm looking for to answer my question. I'm looking over some C++ code, trying to rewrite it in Python. (My Spanish is much better than my C++!) I'm sub-classing and extend