Re: [PyQt] PyQt and DB API.

2008-05-17 Thread Andreas Pakulat
On 17.05.08 23:47:49, objectref wrote: Please don't hijack other people's threads. As I have the opinion that standard is a good thing, do you think that I better use some other module that is DB-API compliant or PyQt is best to be used in this case? Well, that depends on two things: a) is

Re: [PyQt] Naming convention

2008-05-13 Thread Andreas Pakulat
On 12.05.08 15:22:01, Laurent Léonard wrote: Python and QT have very different naming conventions, so what about the naming conventions with PyQt ? Huh? A quick look through the standard modules shows a lot of classes that also use CamelCase naming. Andreas -- You have an unusual magnetic

Re: [PyQt] Signal on Selection in QTreeView

2008-03-19 Thread Andreas Pakulat
On 18.03.08 17:54:44, Kevin Foss wrote: I really hate to keep coming back for help like this but even after re-reading the reference you gave (I've read it before), I still have yet to understand what constitutes an INDEX. A QModelIndex is simply a little helper class that stores all data

Re: [PyQt] Getting raw x11 events

2008-03-19 Thread Andreas Pakulat
On 18.03.08 23:52:59, Tro wrote: Hi. I'm trying to get at the raw x11 events by overriding the x11ProcessEvent() method in my PyQt QApplication-derived class, but it's never being called. In fact, QApplication doesn't seem to have a x11ProcessEvent() method that I could override.

Re: [PyQt] Signal on Selection in QTreeView

2008-03-18 Thread Andreas Pakulat
On 18.03.08 13:37:46, [EMAIL PROTECTED] wrote: I have been successful in getting the row number back to me for a selected row. I have found that the returned row number is not consistent with the list but with the view. Therefore row '0' when I start is row '10' on a 10 item list when the

Re: [PyQt] newbie question about events without a signal/slot(?)

2008-03-17 Thread Andreas Pakulat
On 17.03.08 14:28:44, [EMAIL PROTECTED] wrote: now i want to react to the 'QLineEdit.focusInEvent', but i don't know how this works. just defining a 'def focusInEvent' didn't work and there's is no signal for this event?! You need to write a QLineEdit subclass which than defines that

Re: [PyQt] Signal on Selection in QTreeView

2008-03-17 Thread Andreas Pakulat
On 17.03.08 10:22:05, [EMAIL PROTECTED] wrote: Hi, I'm trying to use a list that contains a media library react to a user clicking on an item in the list. When clicked, the details of the item would show up in a GroupBox elsewhere on the screen. However, at this time I'm a little

Re: [PyQt] Signal on Selection in QTreeView

2008-03-17 Thread Andreas Pakulat
On 17.03.08 13:31:01, Kevin wrote: Andreas, The problem is that my connect statement does not call the appropriate function. I've done some searching based on your recommendations, yet I have not been able to find a basic example I can understand. Could you point me to a simple

Re: [PyQt] Signal on Selection in QTreeView

2008-03-17 Thread Andreas Pakulat
On 17.03.08 16:31:54, Kevin Foss wrote: Your understanding seems to correct. I do not want to change the list entries at this point. To confirm what you said, I do want to have the item details of a list entry displayed in a separate widget when the user selects the list entry. Part

Re: [PyQt] Autoconnecting two signals to the same method.

2008-03-15 Thread Andreas Pakulat
On 15.03.08 09:31:14, Rocco Orlando Rossi wrote: Hi all. I'm new to PyQt. I'm coming from pygtk and Glade, but I am really very interested in trying out PyQt, Eric, and Designer as a more valid alternative. Now, very briefly, here's my problem. I was attempting to autoconnect two

Re: [PyQt] Working with os.popen and qprogressdialog

2008-03-12 Thread Andreas Pakulat
On 12.03.08 20:11:20, Ulf Röttger wrote: Am Montag 10 März 2008 20:09:27 schrieb Andreas Pakulat: This should execute an ls -l /usr/share/home and show a progressbar while that is done. However you'll probably need to play around a bit with escaping rules when you want to use pipes

Re: [PyQt] PyKDE4-4.0.2 release

2008-03-11 Thread Andreas Pakulat
On 11.03.08 18:48:21, Detlev Offenbach wrote: On Dienstag, 11. März 2008, Jim Bublitz wrote: PyKDE4-4.0.2 is now available at riverbankcomputing.com. It includes some minor fixes to problems that were preventing PyKDE4 from building against KDE 4.0.2, the addition to kdecore of some

Re: [PyQt] Working with os.popen and qprogressdialog

2008-03-10 Thread Andreas Pakulat
On 09.03.08 16:21:05, JMiahMan wrote: Andreas Pakulat-2 wrote: Thats because while you run your process the event loop is not run and thus no painting updates are being done. I suggest to take a look at QProcess as that one sends the output in an asynchronous way and thus allows

Re: [PyQt] Working with os.popen and qprogressdialog

2008-03-10 Thread Andreas Pakulat
On 10.03.08 08:45:43, Jeremiah Summers wrote: Thank you but, I'm still at a loss. I tried what the Wiki said and a few other pages, I've tried to understand what you said.. But as I I'm not sure how much of the wiki is usable for a beginner, as quite some stuff there will probably still be for

Re: [PyQt] Working with os.popen and qprogressdialog

2008-03-09 Thread Andreas Pakulat
On 08.03.08 22:04:57, JMiahMan wrote: I need to create a progress bar for a command that I run with popen, but so far I've had no luck. Here's a sniplet of code: Pd = QtGui.QProgressDialog ( Creating Disk Image..., Stop, 0, 0, self) Pd.show () from os.path import isdir

Re: [PyQt] PyQt4 fails to link to -plython2.5

2008-03-04 Thread Andreas Pakulat
On 04.03.08 08:04:16, Giacomo Lacava wrote: On Sat, Mar 1, 2008 at 9:28 PM, Andreas Pakulat [EMAIL PROTECTED] wrote: This is reproducible with both stable and snapshot versions and python 2.5.1 I get the same with python 2.4.4 and Qt 4.4, so it's definitely due the Qt version rather

Re: [PyQt] Connection PostgreSQL

2008-03-03 Thread Andreas Pakulat
On 03.03.08 17:30:53, Mirko Coz wrote: How can I connect with PostgreSQL from PyQt?. I am using Ubuntu Gutsy and PostgreSQL 8.3. See the QtSql api docs at: http://doc.trolltech.com/4.3/qtsql.html Basically you just need to make sure you specify the PSQL driver when adding a QSqlDatabase.

Re: [PyQt] Connection PostgreSQL

2008-03-03 Thread Andreas Pakulat
On 03.03.08 17:30:53, Mirko Coz wrote: How can I connect with PostgreSQL from PyQt?. I am using Ubuntu Gutsy and PostgreSQL 8.3. Or have a look at the PyQt docs (which are also included in the sources and should be in a distro package too):

Re: [PyQt] PyQt4 fails to link to -plython2.5

2008-03-01 Thread Andreas Pakulat
On 01.03.08 18:46:02, Vladimir Pouzanov wrote: make fails with lots of errors like: sipQtCoreQtKeyboardModifiers.cpp:(.text+0x773): undefined reference to `PyEval_SaveThread' sipQtCoreQtKeyboardModifiers.cpp:(.text+0x77d): undefined reference to `PyEval_RestoreThread'

Re: [PyQt] setText from threading

2008-02-21 Thread Andreas Pakulat
On 21.02.08 22:58:00, Aaron Digulla wrote: Reinaldo de Carvalho schrieb: The objective of this thread is only dont freeze window. No concurrent acccess will happen to GUI components. A have a hundred of methods called by pushButtons or SIGNALs from Qlistview like itemChanged, that

Re: [PyQt] setText from threading

2008-02-20 Thread Andreas Pakulat
On 20.02.08 14:26:37, Reinaldo de Carvalho wrote: PyQt3 3.16 (Debian etch), my program use Qt3, i cant update to PyQt4 now. You can't change Qt gui components from a thread other than the gui thread. You have to implement some notification mechanism between your thread and gui components. A

Re: [PyQt] setText from threading

2008-02-20 Thread Andreas Pakulat
On 20.02.08 15:59:31, Reinaldo de Carvalho wrote: Sending to the list again. You have a sample code? No, but PyQt comes with examples and that includes examples which use threads and events I think. Those are probably using QThread instead of python threads, so things might work a bit

Re: [PyQt] setText from threading

2008-02-20 Thread Andreas Pakulat
On 21.02.08 09:23:55, Algis Kabaila wrote: On Thu, 21 Feb 2008 07:32:47 Andreas Pakulat wrote: On 20.02.08 15:59:31, Reinaldo de Carvalho wrote: [..] No, but PyQt comes with examples and that includes examples which use threads and events I think. [..] Andreas In quietly reading

Re: [PyQt] tracking current widget selection

2008-02-19 Thread Andreas Pakulat
On 19.02.08 13:15:48, John Vines (CISD/HPCD) wrote: All, I am using the Model/View framework with a QTreeView to display my XML data. How do I find out the currently selected item in a QTreeView widget? Use the selection model of the view. Andreas -- You are as I am with You.

Re: [PyQt] QModelTest and QAbstractTableModel models...

2008-02-19 Thread Andreas Pakulat
On 19.02.08 09:47:50, Dirk Wagener wrote: Hi Can I use ModelTest to test custom implementations of QAbstractTableModel ? If I use ModelTest as is, it breaks when it tries to access some of the QAbstractTableModel private methods: File Y:\tests\modeltest.py, line 81, in

Re: [PyQt] Qt4 Tutorial Porting

2008-02-14 Thread Andreas Pakulat
On 13.02.08 19:05:56, Chris White wrote: I was looking around for getting started guides on PyQt4 (I'm using MinGW/Python 2.5/Qt4/PyQt4 and the whole nine yards on a Vista Machine), and I noticed that they're somewhat scattered about. What I ended up doing was taking from the C++ Qt4

Re: [PyQt] A couple of question about PyKDE4

2008-02-07 Thread Andreas Pakulat
On 07.02.08 21:11:21, Simon Edwards wrote: The only thing missing in PyKDE4 is Phonon support, which is a little messy (or was last time I looked). IIRC, Phonon will be moving into Qt itself, possibly in Qt 4.4. In which case it'll become Phil's problem. ;-) Not exactly. As far as I've

Re: [PyQt] Qcompleter,dateEdit popup questions.

2008-02-06 Thread Andreas Pakulat
On 06.02.08 11:53:14, Igor Prischepoff wrote: Hello,everybody! I'm new to PyQt and in process of converting my application from wxPython to PyQt. I'd like to ask couple of question about nice QCompleter class in Qt and PyQt. Question #1: How can I build my own custom completer which

Re: [PyQt] Qcompleter,dateEdit popup questions.

2008-02-06 Thread Andreas Pakulat
On 06.02.08 16:25:39, Igor Prischepoff wrote: As far as I can see, what you need to do is to also provide m10 as an entry in your completion model. Sorry,but my users can type anything and I have not possibilities to predict and add any possible combination of chars into completion list. I

Re: [PyQt] A couple of question about PyKDE4

2008-02-05 Thread Andreas Pakulat
On 05.02.08 12:13:28, Jim Bublitz wrote: On Tuesday 05 February 2008 11:49, Torsten Marek wrote: - is there any high-level documentation about krosspython? Forgive my ignorance, but I've never come across it. (I'd *guess* that it's for embedding PyKDE4 scripts as components in KDE programs)

Re: [PyQt] processEvents on QlistWidget operations does nothing

2008-01-28 Thread Andreas Pakulat
On 28.01.08 09:48:35, P. Mathé wrote: Thank you guys for all the interest you have in my little problem (that in fact I consider as a Qt bug or design flaw). Le dimanche 27 janvier 2008, Andreas Pakulat a écrit : On 27.01.08 13:36:37, Scott Aron Bloom wrote: Its not about replacing 1

[PyQt] Re: processEvents on QlistWidget operations does nothing

2008-01-28 Thread Andreas Pakulat
On 28.01.08 09:58:20, P. Mathé wrote: Thank you Scott for your answer, but unnless I didn'y understand you correctly, it does not work : the timer singleshot is fired only after the loop ends. Unfortunately you didn't understand correctly. What Scott meant was that the slot connected to the

Re: [PyQt] processEvents on QlistWidget operations does nothing

2008-01-27 Thread Andreas Pakulat
On 27.01.08 16:45:36, P. Mathé wrote: I am sending you this message, originally sent to the PyQt mailing list, as it seems, according to Phil's answer that the problem lies within Qt. As suggested by Phil, I changed the program to make the urllib call from within a different thread, but, if

Re: [PyQt] processEvents on QlistWidget operations does nothing

2008-01-27 Thread Andreas Pakulat
On 27.01.08 19:37:05, P. Mathé wrote: Le dimanche 27 janvier 2008, Andreas Pakulat a écrit : On 27.01.08 16:45:36, P. Mathé wrote: I am sending you this message, originally sent to the PyQt mailing list, as it seems, according to Phil's answer that the problem lies within Qt

Re: [PyQt] processEvents on QlistWidget operations does nothing

2008-01-27 Thread Andreas Pakulat
On 27.01.08 13:36:37, Scott Aron Bloom wrote: Its not about replacing 1 line of code, its about properly designing your applications business logic. Moving heavy work into a thread is the right thing to do (or separate process). QApplication::processEvents is the ugly hack for those who

Re: [PyQt] How to write a GUI interface for a set of Python programs?

2008-01-27 Thread Andreas Pakulat
On 28.01.08 14:55:45, Algis Kabaila wrote: Andreas, Many thanks for your prompt answer. I use openSUSE 10.3 and thought I already had Qt4 installed. Looking at the Yast package list, it would seem that this is so. I do not remember how I installed the QtDesigner - I don't think that

Re: [PyQt] Qt designer KDE

2008-01-27 Thread Andreas Pakulat
On 28.01.08 14:59:42, Daniel O'Connor wrote: This might be OT but any answers would be greatly appreciated.. What is the canonical way to build a KDE application using a GUI designer? I've tried both Qt designer and kdevdesigner but they both generate QMainWindow classes and I can't see

Re: [PyQt] signal editTextChanged

2008-01-23 Thread Andreas Pakulat
On 23.01.08 15:37:44, Kerri Reno wrote: I have a QComboBox, and I want the users to be able to edit the text, and I want to know when the text has changed. I'm trying to use the signal editTextChanged on the comboBox, but it doesn't seem to do anything. Following is example code that

Re: [PyQt] Bug in QTableView.setModel()

2008-01-07 Thread Andreas Pakulat
On 06.01.08 21:13:44, Aaron Digulla wrote: The root cause is that setModel() doesn't increment the usage counter of the python class passed in, so Python will GC it if I don't save a pointer elsewhere. Thats by purpose. One reason I can think of is that you often want to use the model

Re: [PyQt] Bug in QTableView.setModel()

2008-01-07 Thread Andreas Pakulat
On 07.01.08 11:12:10, Aaron Digulla wrote: Quoting Andreas Pakulat [EMAIL PROTECTED]: On 06.01.08 21:13:44, Aaron Digulla wrote: The root cause is that setModel() doesn't increment the usage counter of the python class passed in, so Python will GC it if I don't save a pointer elsewhere

Re: [PyQt] Single/Multiple inheritance with Qt Designer

2007-12-27 Thread Andreas Pakulat
On 18.12.07 18:54:40, Tiago Maluta wrote: Hi, I'm with some problems trying to use a form developed in qt designer in my project. I will describe my steps: 1) I created a Dialog without buttons 2) pyuic4 viewform.ui -o ui_viewform.py 3) edited my main file import sys #from qt

Re: [PyQt] Using a protected slot (columnResized)

2007-12-26 Thread Andreas Pakulat
On 25.12.07 13:19:10, Noam Raphael wrote: 2007/12/25, Phil Thompson [EMAIL PROTECTED]: On Tuesday 25 December 2007, Noam Raphael wrote: Hello, I want to know when the width of columns in a table has changed. So I wrote something like this: class TableView(QtGui.QTableView):

Re: [PyQt] Using a protected slot (columnResized)

2007-12-26 Thread Andreas Pakulat
On 26.12.07 18:54:25, Noam Raphael wrote: 2007/12/26, Andreas Pakulat [EMAIL PROTECTED]: Sure there is: Listen for the sectionResized signal of the header view. Thanks! However, it still doesn't work, for some reason. I added this to my code: def columnResized(*args): print

Re: [PyQt] Using a protected slot (columnResized)

2007-12-26 Thread Andreas Pakulat
On 26.12.07 19:25:35, Noam Raphael wrote: 2007/12/26, Andreas Pakulat [EMAIL PROTECTED]: On 26.12.07 18:54:25, Noam Raphael wrote: 2007/12/26, Andreas Pakulat [EMAIL PROTECTED]: Sure there is: Listen for the sectionResized signal of the header view. Thanks! However, it still

Re: [PyQt] hidden signals?

2007-12-24 Thread Andreas Pakulat
On 24.12.07 09:16:17, Jochen Georges wrote: hello, sorry for the tons of beginner-questions and thanks for your patience. there is a strange behaviour of a pushbutton and do not see, why it is ... there are two buttons and two lineedits. if the first button is clicked, only the first

Re: [PyQt] Memory leak when using QAbstractTableModel

2007-12-23 Thread Andreas Pakulat
On 23.12.07 13:59:30, Noam Raphael wrote: 2007/12/23, Phil Thompson [EMAIL PROTECTED]: Is there anything that can be done? Not if I can't reproduce the problem. I'm using current SIP and PyQt snapshots and Qt 4.3.3. It also works for me on windows, using the latest binary. But have

Re: [PyQt] qtable data source

2007-12-23 Thread Andreas Pakulat
On 23.12.07 11:05:18, nishith datta wrote: Ok , I went throught he documentation before and yet again. I can't figure out what the hell is wrong with this code ;- import sys from PyQt4 import QtGui, QtSql db = QtSql.QSqlDatabase.addDatabase(QPSQL) db.setHostName(localhost)

Re: [PyQt] data aware widgets not there

2007-12-18 Thread Andreas Pakulat
On 18.12.07 14:19:56, Oleg Klimov wrote: You seem to have Microsoftisch background (or Borland). PyQt is not a solution for everything: databases, making coffee, etc. It only handles GUI. For database connectivity, here's some entry points: And you didn't read your PyQt manuals ;P PyQt builds

Re: [PyQt] Re: Modelss dialog not usable

2007-12-17 Thread Andreas Pakulat
On 17.12.07 15:08:23, duncan duncan wrote: On Dec 17, 2007 3:00 PM, duncan duncan [EMAIL PROTECTED] wrote: Hello. In my application (a QApplication), as central widget I have two QListWidget. When I double click on an item of a list widget, I want to show a dialog with some detail

Re: [PyQt] Repr for value objects

2007-12-17 Thread Andreas Pakulat
On 17.12.07 14:48:48, Phil Thompson wrote: On Monday 17 December 2007, Giovanni Bajo wrote: Hi, there are many classes in PyQt which would benefit from a custom __repr__ method to show their contents. For instance, I'm getting tired of having to write: def mousePressEvent(self,

Re: [PyQt] Repr for value objects

2007-12-17 Thread Andreas Pakulat
On 17.12.07 16:59:51, Giovanni Bajo wrote: On 12/17/2007 4:25 PM, Andreas Pakulat wrote: Not really: QPoint can be formatted only to a QDataStream. QTextStream is limited to basic datatypes like float, char, etc. Ah, I thought qDebug() would be using QTextStream stream-operators, but it has

Re: [PyQt] QtGui.QSessionManager: Syntax

2007-12-14 Thread Andreas Pakulat
On 14.12.07 20:22:45, Chris Giles wrote: I want to use QSessionManager in my PyQt4 application, so that it will be reloaded when the user logs back into KDE. I've tried all of the following without success. - QtGui.QApplication.saveState ( QtGui.QSessionManager() ) -

Re: [PyQt] QtGui.QSessionManager: Syntax

2007-12-14 Thread Andreas Pakulat
On 14.12.07 22:11:55, Chris Giles wrote: The same syntax I guess. PyQt4 is nothing else than Qt4, but with python syntax rather than C++. So just translate the C++ specific language things into the Python language equivalent and it'll work. In particular that page says you should

Re: [PyQt] QPrinter.setOutputToFile is missing

2007-12-06 Thread Andreas Pakulat
On 06.12.07 18:48:29, Mike Tammerman wrote: Hi, I think, QPrinter's setOutputToFile function is not wrapped. It is in the documentation of the Qt4. from PyQt4.QtCore import * from PyQt4.QtGui import * a = QApplication([]) p = QPrinter() p.setOutputToFile(True) Traceback (most recent

Re: [PyQt] Problem with a simple QDialog

2007-11-28 Thread Andreas Pakulat
On 28.11.07 10:40:58, Alexandre Badez wrote: On Nov 28, 2007 10:21 AM, Horst Herb [EMAIL PROTECTED] wrote: On Wednesday 28 November 2007, Alexandre Badez wrote: wChapterSelection = QtGui.QDialog() wChapterSelection.exec_() And I've got also a bus error. What really suprise

Re: [PyQt] auto-completing combo box with table view

2007-11-28 Thread Andreas Pakulat
On 28.11.07 22:16:09, Horst Herb wrote: On Wednesday 28 November 2007, Andreas Pakulat wrote: That model provides data, no matter wether the index is valid or not or the role matches Qt.DisplayRole. That means you break the contract between model and view. It is just a dummy to deliver

Re: [PyQt] Can't get QCheckBox to work in a QTableView

2007-11-26 Thread Andreas Pakulat
On 26.11.07 04:13:24, Chris Dunscombe wrote: --- Andreas Pakulat [EMAIL PROTECTED] wrote: On 23.11.07 09:04:56, Chris Dunscombe wrote: Hi, I'm trying to have a checkable column plus label with other columns in a table. I can't use QTableWidget as one of the other columns

Re: [PyQt] QAbstractItemModel subclass + QTreeView brickwall

2007-11-25 Thread Andreas Pakulat
On 25.11.07 21:17:12, Simon Edwards wrote: Hello all, I'm having a hard time getting a QTreeView widget to work with my own model. I've tried translating the Simple Tree Model Example from the Qt docs, but it still doesn't work. Does anyone have working example code for a

Re: [PyQt] QAbstractItemModel subclass + QTreeView brickwall

2007-11-25 Thread Andreas Pakulat
On 25.11.07 22:51:25, Simon Edwards wrote: Andreas Pakulat wrote: On 25.11.07 21:17:12, Simon Edwards wrote: I'm having a hard time getting a QTreeView widget to work with my own model. I've tried translating the Simple Tree Model Example from the Qt docs, but it still doesn't work. Does

Re: [PyQt] Can't get QCheckBox to work in a QTableView

2007-11-23 Thread Andreas Pakulat
On 23.11.07 09:04:56, Chris Dunscombe wrote: Hi, I'm trying to have a checkable column plus label with other columns in a table. I can't use QTableWidget as one of the other columns is a ComboBox. After much trying, googling and reading of Mark's excellent new book I just can't get it to

Re: [PyQt] QItemDelegate

2007-11-22 Thread Andreas Pakulat
On 22.11.07 09:57:41, Alexandre Badez wrote: On Nov 21, 2007 5:26 PM, Alexandre Badez [EMAIL PROTECTED] wrote: On Nov 21, 2007 5:06 PM, Andreas Pakulat [EMAIL PROTECTED] wrote: I'm steel trying to make my deletage, but I've steel have some problem. My application must be multi-plateform

Re: [PyQt] QItemDelegate

2007-11-22 Thread Andreas Pakulat
On 22.11.07 13:54:58, Alexandre Badez wrote: By the way, is there a better than re implement the complete paint method ? I mean, I just want to change the color of the line according to the type of the node (but not in every view). Sure, either let the model provide the color or change the

Re: [PyQt] threading

2007-11-22 Thread Andreas Pakulat
On 22.11.07 09:11:31, Lawrence Shafer wrote: I've been playing with threading the last few hours, because I have a lcd number object in the gui that I want to update once per second. Am I barking up the right tree with threading? Maybe you're not barking up the right tree here. An IMHO

Re: [PyQt] QItemDelegate

2007-11-21 Thread Andreas Pakulat
On 21.11.07 16:02:31, Alexandre Badez wrote: Good afternoon everyone, I'm developing a little application for my own purpose, using Qt model view. I've develop my own model, for my own data, witch is quiet like a tree (to make it simple). I've got many tree view connected to my single

Re: [PyQt] platform in python

2007-11-18 Thread Andreas Pakulat
On 19.11.07 00:34:45, Ben Luo wrote: Dear All, It may be a big and stupid question. But I want to know if there are some one think about it. There are a lot of python IDEs like Eric4 and Ulipad. Eric4 is based on qt4, and Ulipad is based on wxpython. Eclipse is a platform. There are a

Re: [PyQt] QtDesigner module

2007-11-16 Thread Andreas Pakulat
On 16.11.07 16:24:11, Gwendolyn van der Linden wrote: Hi, We have been using PyQt 4.2.3, and noticed the QtDesigner module is missing, but is needed for using PyQt widget plug-ins in QtDesigner. We then upgraded using PyQt-Py2.5-gpl-4.3.1-1.exe, but the QtDesigner module is still missing.

Re: [PyQt] Rejoice, for PyKDE4 has landed in KDE SVN

2007-11-12 Thread Andreas Pakulat
On 12.11.07 23:08:26, Hans-Peter Jansen wrote: Am Montag, 3. September 2007 schrieb Simon Edwards: [I'll just repeat my blog post here for everyone.] Almost all classes in kdelibs are covered, except Phonon which is waiting on imporved namespace support in SIP before we can add support.

Re: [PyQt] QTreeView: inserting and removing rows in view and underlying data...

2007-11-09 Thread Andreas Pakulat
On 09.11.07 10:02:31, Mark Summerfield wrote: On 2007-11-09, Dirk Wagener wrote: Hi I am experiencing some confusion regarding the model/view architecture when using a QTreeView with a custom QAbstractItemModel. [snip] Can somebody please give me some advice. Where can I learn how to

Re: [PyQt] QTreeView: inserting and removing rows in view and underlying data...

2007-11-09 Thread Andreas Pakulat
On 09.11.07 10:58:08, Dirk Wagener wrote: At this stage I am doing something wrong regarding this. Now and then (sporadically) I get access violations when getting the underlying data from a QModelIndex(): tmpTreeNode = currentModelIndex.internalPointer() To test to a certain extent that

Re: [PyQt] stdin processing

2007-11-06 Thread Andreas Pakulat
On 06.11.07 15:08:49, Vladimir Pouzanov wrote: Is there any way to read stdin line by line without blocking? My application receives data over stdin (one command per line) and should react immediately. I've tried to make such thing: self.stdin = QtCore.QFile(self) self.stdin.open(0,

Re: [PyQt] QTreeWidget

2007-11-02 Thread Andreas Pakulat
On Freitag, 2. November 2007, alteo_gange wrote: Flavio Coelho and Phil Thompson: Could you delete your message please? The answer to that is most probably no. Now, my email appears on the web. I don't want to be spammed. There are better ways of fighting spam than trying to hide your email.

Re: [PyQt] QTreeWidget

2007-11-02 Thread Andreas Pakulat
On Freitag, 2. November 2007, alteo_gange wrote: Le vendredi 02 novembre 2007, Phil Thompson a écrit : On Friday 02 November 2007, alteo_gange wrote: Flavio Coelho and Phil Thompson: Could you delete your message please? I don't know what you mean. Now, my email appears on the

Re: [PyQt] Question about QTimer and QThreads

2007-10-29 Thread Andreas Pakulat
On 28.10.07 18:31:25, Darren Dale wrote: I am trying to understand how to run a second event loop using a qthread. The Qt docs indicate this is possible, but I haven't found any examples. I have a simple example that I think should work, but doesn't. When I run my thread's exec_(), it

Re: [PyQt] Question about QTimer and QThreads

2007-10-29 Thread Andreas Pakulat
On 29.10.07 08:40:38, V. Armando Sole wrote: Hello Darren, At 19:07 28/10/2007 -0400, Darren Dale wrote: Anyway, changing my example to use a.show() doesn't work, the thread's event loop is not started. I don't see any recent discussion on the list that seems relevent. Please add the

Re: [PyQt] Drag and Drop when using designer

2007-10-25 Thread Andreas Pakulat
On 25.10.07 04:22:39, Nahuel Defossé wrote: Hi! I've made all my gui with designer. I have some List Views there that need drag and drop funcitonality so I need to add them some methods to handle the drop events properly, and set the accept drops to True... but I can't add those methods

Re: [PyQt] Drag and Drop when using designer

2007-10-25 Thread Andreas Pakulat
On 25.10.07 12:30:20, Jan Ekholm wrote: On Thursday 25 October 2007, Andreas Pakulat wrote: On 25.10.07 04:22:39, Nahuel Defossé wrote: Hi! I've made all my gui with designer. I have some List Views there that need drag and drop funcitonality so I need to add them some methods

Re: [PyQt] Drag and Drop when using designer

2007-10-25 Thread Andreas Pakulat
On 25.10.07 13:23:20, Jan Ekholm wrote: On Thursday 25 October 2007, Andreas Pakulat wrote: Thats mostly for normal QWidget subclasses, the interview classes have dnd support builtin, based on what the model provides. The puzzle example demonstrates this pretty well, you have a listview

Re: [PyQt] PyQt book Rapid GUI Programming with Python and Qt now available

2007-10-25 Thread Andreas Pakulat
On 25.10.07 13:38:15, alteo_gange wrote: Le jeudi 25 octobre 2007, Gustavo A. Díaz a écrit : A shame that I can't buy here in Argentina :( And the cost for me is to much to buy it in Amazon for example (including the international delivery)... It's a big problem. I live in France.

Re: [PyQt] Drag and Drop when using designer

2007-10-25 Thread Andreas Pakulat
On 25.10.07 14:18:05, Jan Ekholm wrote: On Thursday 25 October 2007, Andreas Pakulat wrote: Would you elaborate a bit on that? I mean what exactly is the problem with the tree models? And exactly which tree models are you talking about? There are none in Qt itself, except

Re: [PyQt] PyQt book Rapid GUI Programming with Python and Qt now available

2007-10-25 Thread Andreas Pakulat
On 25.10.07 13:33:54, Mark Summerfield wrote: On 2007-10-25, Andreas Pakulat wrote: On 25.10.07 13:38:15, alteo_gange wrote: Le jeudi 25 octobre 2007, Gustavo A. Díaz a écrit : A shame that I can't buy here in Argentina :( And the cost for me is to much to buy it in Amazon

Re: [PyQt] Re: PyQt book Rapid GUI Programming with Python and Qt now available

2007-10-25 Thread Andreas Pakulat
On 25.10.07 17:19:51, Thorsten Kampe wrote: * Andreas Pakulat (Thu, 25 Oct 2007 15:36:43 +0200) On 25.10.07 13:33:54, Mark Summerfield wrote: Of course, I don't have any control over the pricing, and this isn't just about my particular book---my guess is that outside the US booksellers

Re: [PyQt] Re: Internationalization problem

2007-10-20 Thread Andreas Pakulat
On 20.10.07 03:13:08, Thorsten Kampe wrote: * Andreas Pakulat (Sat, 20 Oct 2007 00:40:04 +0200) On 19.10.07 21:47:58, Thorsten Kampe wrote: reading through Mark Summerfield's book I've tried to localise my appliation. This works fine for my own translation but not for the one from

Re: [PyQt] Re: Re: Internationalization problem

2007-10-20 Thread Andreas Pakulat
On 20.10.07 15:21:32, Thorsten Kampe wrote: Okay, so one more quite general question: does it make sense to load the localised Qt translation in my own application? Yes ist does. Also things like Message boxes will be translated Where would I see those? In file open dialogs for example? - or

Re: [PyQt] Internationalization problem

2007-10-19 Thread Andreas Pakulat
On 19.10.07 21:47:58, Thorsten Kampe wrote: [latest PyQt] Hi, reading through Mark Summerfield's book I've tried to localise my appliation. This works fine for my own translation but not for the one from Trolltech (qt_de.qm). This means that for instance all my menus are in German but

Re: [PyQt] QThread not exiting

2007-10-19 Thread Andreas Pakulat
On 19.10.07 11:07:34, Kerri Reno wrote: OK, I took out all the GUI elements, but I still can't get the QThread to exit: Sorry, didn't notice before. You're actually not starting a new thread. You call self.run() from the constructor of the QThread subclass, but the constructor is executed

Re: [PyQt] QThread not exiting

2007-10-19 Thread Andreas Pakulat
On 19.10.07 09:25:05, Kerri Reno wrote: I'm trying to run a progress bar in a QThread, while other stuff runs in the main thread. I can't get the QThread to exit. It just goes on forever. My code is attached - please help! You can't. GUI elements can not work outside the main thread. If you

Re: [PyQt] Internationalisation process help

2007-10-18 Thread Andreas Pakulat
On 18.10.07 20:42:44, kib2 wrote: Hi, I'm trying to understand the internationalisation process in a PyQt4 app. From my main ui file (in French), I've got a ts one with pylupdate4, then translated it to binaries in qm format. The resulting file is named 'em.qm' and is in my main app

Re: [PyQt] Internationalisation process help

2007-10-18 Thread Andreas Pakulat
On 18.10.07 21:10:23, kib2 wrote: Andreas Pakulat a écrit : On 18.10.07 20:42:44, kib2 wrote: Hi, I'm trying to understand the internationalisation process in a PyQt4 app. From my main ui file (in French), I've got a ts one with pylupdate4, then translated it to binaries in qm format

Re: [PyQt] Qt 4.4

2007-10-16 Thread Andreas Pakulat
On 16.10.07 12:02:04, Matt Chambers wrote: Has anyone tested the latest snapshots with Qt 4.4? No, and Phil usually doesn't support Qt snapshots, only releases. Andreas -- Your object is to save the world, while still leading a pleasant life. ___

[PyQt] PyQt4 snapshots don't build with -c -j

2007-10-15 Thread Andreas Pakulat
Hi, yesterday I fetched a new PyQt4 snapshot and as always let it build with -c -j 8. After about 30 minutes that it spent on sipQtGuipart0 I stopped it and increased to -j 20. Same problem with that number. Even -j 30 causes this. I noticed though that the sipQtGuiPart0.cpp has only a difference

Re: [PyQt] PyQt4 snapshots don't build with -c -j

2007-10-15 Thread Andreas Pakulat
On 15.10.07 10:08:07, Jim Bublitz wrote: On Monday 15 October 2007 09:44, Andreas Pakulat wrote: Hi, yesterday I fetched a new PyQt4 snapshot and as always let it build with -c -j 8. After about 30 minutes that it spent on sipQtGuipart0 I stopped it and increased to -j 20. Same problem

Re: [PyQt] PyQt4 snapshots don't build with -c -j

2007-10-15 Thread Andreas Pakulat
On 15.10.07 18:12:10, Phil Thompson wrote: On Monday 15 October 2007, Andreas Pakulat wrote: Is there anything that can be done to fix this? (I've got a GB of RAM here, so that shouldn't be an issue) It really sucks having to disable concatenation as it speeds up compilation a lot. I

Re: [PyQt] layout management serious problem

2007-10-14 Thread Andreas Pakulat
On 14.10.07 22:00:38, [EMAIL PROTECTED] wrote: Hi guys, slowly slowly I am getting there, thanks to your assistance! There is one last thing that I need to address: within my grid layout, I want to place some widgets on a different position, than the (row, column) system allows me. (for

Re: [PyQt] layout management serious problem

2007-10-12 Thread Andreas Pakulat
On 12.10.07 15:36:57, [EMAIL PROTECTED] wrote: uglier)! So I've realized i have to use a layout manager...I've read many texts in the web but i don't get the logic behind this thing. Can't i just create the mainwindow, the size i want, then create the central widget, create a layout manager,

Re: [PyQt] layout management serious problem

2007-10-12 Thread Andreas Pakulat
On 12.10.07 23:31:28, [EMAIL PROTECTED] wrote: On Fri, 12 Oct 2007 16:05:51 +0300 Mark Summerfield [EMAIL PROTECTED] wrote: On 2007-10-12, [EMAIL PROTECTED] wrote: Hi all, I'm completely confused on a simple thing (from what I read): layout management I've written a pyqt hui app

Re: [PyQt] Qt.Queuedconnection queue size

2007-10-11 Thread Andreas Pakulat
On 11.10.07 10:25:21, Phil Thompson wrote: Note that there is no need to specify a queued connected. All connections across threads are queued. Thats only true if either PyQt4 differs from Qt4/C++ in this respect or the two objects involved in the connection live in two different threads. That

Re: [PyQt] Installation problem in linux

2007-09-27 Thread Andreas Pakulat
On 27.09.07 14:59:05, Shyamsundar, Purkayastha (Purkayastha)** CTR ** wrote: It seems something is amiss in terms of qt path,I installed qt v 4 over qt3.3 ( which was pre installed with os ) but I am unsble to

Re: [PyQt] Installation problem in linux

2007-09-27 Thread Andreas Pakulat
On 27.09.07 15:50:58, Shyamsundar, Purkayastha (Purkayastha)** CTR ** wrote: Actually the QTDIR env was set to the old qt installation Saw that you already solved your issue, but one note: Qt4 doesn't use the QTDIR variable anymore and thus also PyQt4 doesn't use it. Andreas -- You should go

Re: [PyQt] Installation problem in linux

2007-09-27 Thread Andreas Pakulat
On 27.09.07 15:56:28, Shyamsundar, Purkayastha (Purkayastha)** CTR ** wrote: Andreas Qt 3 was installed by linux os by default and I installed qt4 in a different location because I thought pyqt4 would be compatible with qt4 But I didn't know about the -q option in configure.py and it has

Re: [PyQt] [Fwd: Bug#441577: ftbfs with g++-4.3/gcc-snapshot]

2007-09-10 Thread Andreas Pakulat
On 10.09.07 16:30:50, Jim Bublitz wrote: On Monday 10 September 2007 13:25, Torsten Marek wrote: Hi Phil, there has been a bug report about g++-4.3-related build problems, can you comment on that, please? BTW, are you aware of the severe performance problems when compiling

<    1   2   3   4   5   6   7   8   9   >