Re: [PyKDE] Re: pyuic and Access to QGridLayout

2006-02-03 Thread Andreas Pakulat
On 03.02.06 15:57:24, Phil Thompson wrote: On Friday 03 February 2006 3:42 pm, Chad Brantly wrote: Hmm, I think this is a bug in pyuic, it should a) preserve the name of the layout b) create the GridLayout with the groupbox as parent, effectivly setting the layout for the groupbox.

Re: [PyKDE] pyuic and Access to QGridLayout

2006-02-02 Thread Andreas Pakulat
On 02.02.06 16:52:26, Chad Brantly wrote: no way to access group_boxLayout. I can access self.group_box, but the layout instance is not preserved. It is preserved as a child of that QGroupBox My next thought was that I would access the layout widget by name using:

Re: [PyKDE] blockSignals not working with check boxes

2006-01-31 Thread Andreas Pakulat
On 29.01.06 17:40:23, Andreas Pakulat wrote: Hi, see attached python program and ui-file for a minimal example that blockSignals don't work with QCheckBox. When the checkbox' setChecked is called it's stateChanged() signal is emitted and the slot is executed. This is as of now the only

[PyKDE] sender() in PyQt4 returns wrong object

2006-01-31 Thread Andreas Pakulat
Hi, I tried to use sender() in a slot connected to a signal of a QWidget derived class, however sender() always returns a QObject instance instead of the original QWidget-derived one. Is this by purpose and thus sender() is practically not usable in PyQt4 or am I just missing something? Andreas

[PyKDE] PyQt4 and user-definied classes in signals

2006-01-31 Thread Andreas Pakulat
Hi, is or will it be possible to use user-defined classes when emitting signals? For example I'd like to pass an instance of my data class around with the signal, however I get an error with self.emit(QtCore.SIGNAL(dataChanged(Data)), self.data) telling me that the argument 0 of the signal has

[PyKDE] weird runtime problem with _signature

2006-01-28 Thread Andreas Pakulat
Hi, since upgrading to the latest PyQt4 snapshot I have an extremly weird problem here with my plugins. Comparing 2 classes which have absolutely nothing to do with Qt fails with: /home/andreas/projects/pyfilmdbsimpleui/lib/pluginmanager.py:46: RuntimeWarning: tp_compare didn't return -1 or -2

Re: [PyKDE] Auto-connecting Slots

2006-01-28 Thread Andreas Pakulat
On 28.01.06 12:29:13, Giovanni Bajo wrote: Phil Thompson [EMAIL PROTECTED] wrote: The QtCore.signature() decorator takes a single argument which is, in effect, the C++ signature of the method which tells the auto-connect code which signal to connect. For example...

Re: [PyKDE] Auto-connecting Slots

2006-01-28 Thread Andreas Pakulat
On 28.01.06 16:35:35, Giovanni Bajo wrote: Andreas Pakulat [EMAIL PROTECTED] wrote: A decorator is just a function and needs to reside in a namespace. While I could put the signature() function in the global namespace, that would be dumb. You can put it within the QtCore namespace

Re: [PyKDE] tutorials for PyKDE?

2006-01-28 Thread Andreas Pakulat
On 28.01.06 20:05:37, Chakkaradeep C C wrote: i started off with PyQt and now i need to try hands with PyKDE and use KDE Widgets too... i would be happy if i get help on where to find some sample tutorials and starters Check the doc-directory that comes with PyKDE. For KDE-stuff check

Re: [PyKDE] Strange problem with signal/slot

2006-01-28 Thread Andreas Pakulat
On 28.01.06 23:25:19, Thomas Muders wrote: 20060126 version with Qt 4.1.0 under Linux as the 20060127 version didn't work. What exactly doesn't work (I'm asking because it works perfectly here)? def setData(self, idx, value, role): [...] if ok:

Re: [PyKDE] Eric3 first impressions.

2006-01-28 Thread Andreas Pakulat
On 29.01.06 00:07:52, Roy Dragseth wrote: My first impression is: Wow, that's a lot of buttons!!! Me too. Coming to Linux from the Unix side (HPUX, and before that VAX/VMS) I'm hardly touching the mouse when I'm coding, so the buttons are just a waste of screenspace. I basically only

Re: [PyKDE] Auto-connecting Slots

2006-01-27 Thread Andreas Pakulat
On 27.01.06 22:46:29, Phil Thompson wrote: On Friday 27 January 2006 8:10 pm, Patrick K. O'Brien wrote: Phil Thompson wrote: Tonight's PyQt4 snapshot implements Torsten's suggestion for using a decorator to control which signal/slot connections are made when pyuic4 auto-connects.

Re: [PyKDE] [PyQt4] QDate.toString(QtCore.Qt.TextDate) is not UTF-8

2006-01-26 Thread Andreas Pakulat
On 26.01.06 03:15:54, Ismail Donmez wrote: I am doing something like this QStatusBar.showMessage(Foo - %s % QDate.toString(QtCore.Qt.TextDate)) Does it work with: QStatusBar.showMessage(QtCore.QString(Foo - %1).arg(QDate.toString(QtCore.Qt.QTextDate))) ? I suspect that the %-replacement

Re: [PyKDE] eric3 Configuration option for pyuic4 [was: Configuration for pyuic4]

2006-01-26 Thread Andreas Pakulat
On 26.01.06 10:15:44, Detlev Offenbach wrote: Am Mittwoch, 25. Januar 2006 19:42 schrieb Andreas Pakulat: On 25.01.06 19:22:17, Andreas Pakulat wrote: I'm currently looking for some options to tweak pyuic4's behaviour. In particular I'd like to a) change the generated filename

[PyKDE] Problems with auto-connect and QAbstractButton.clicked()

2006-01-26 Thread Andreas Pakulat
Hi, I have 2 problems with QAbstractButton.clicked and auto-connection: 1. the auto-connected slot gets called twice, I have no idea why 2. according to Qt4 docs clicked has a boolean argument which I cannot use with the autoconnected slot. The attached files include a minimal example.

Re: [PyKDE] Problems with auto-connect and QAbstractButton.clicked()

2006-01-26 Thread Andreas Pakulat
On 26.01.06 17:12:15, Phil Thompson wrote: On Thursday 26 January 2006 3:49 pm, Andreas Pakulat wrote: Hi, I have 2 problems with QAbstractButton.clicked and auto-connection: 1. the auto-connected slot gets called twice, I have no idea why Because the signal is emitted twice, once

[PyKDE] automatic slots and subclassing

2006-01-26 Thread Andreas Pakulat
Hi, another thing I found with automatic slots: It seems they do not work when subclassing: class parentWidget(QtGui.QWidget): def __init__(self): QtGui.QWidget.__init__(self) def on_pushButton_clicked(self, checked = None): print tst class

Re: [PyKDE] Using UI files in your app with PyQt4

2006-01-25 Thread Andreas Pakulat
On 25.01.06 07:38:19, Torsten Marek wrote: Hi, I was a bit short yesterday, but it was already late. I meant @signature(int) on_upperspin_valueChanged(self, value): ... and the decorator saves the signature as an attribute of the function, for use by connectSlotsByName. Ah, I

Re: [PyKDE] Eric3 with pq4 and windows

2006-01-25 Thread Andreas Pakulat
On 24.01.06 20:51:42, laurent.caron.1 wrote: Hi all, I tried to find Eric3 IDE for Qt4 and Windows... where can i found it ? AFAIK: Take the latest snapshot, it has some support for Qt4 projects. Andreas -- You will be attacked by a beast who has the body of a wolf, the tail of a lion,

Re: [PyKDE] eric3 install

2006-01-25 Thread Andreas Pakulat
On 24.01.06 12:56:07, walter wrote: I am trying to install eric3 on a ubuntu system I have installed it with Synaptic, the built in ubuntu installer I get the follwing error when I try to start eric 3 Why don't you report this with Ubuntu then? From the code I can't see an error and it's

Re: [PyKDE] Custom slots with Qt Designer 4.1

2006-01-25 Thread Andreas Pakulat
On 25.01.06 15:27:51, Fabio Spelta wrote: I've seen how to associate signals to slots in the qt3 edition of Qt Designer, and then how to write python functions that implements these methods. It seems (http://www.qtcentre.org/forum/showthread.php?t=34) that designer 4.1 does not allow to

Re: [PyKDE] Using UI files in your app with PyQt4

2006-01-25 Thread Andreas Pakulat
On 22.01.06 15:19:13, Torsten Marek wrote: .: Create a type on the fly and use it as a base class (slightly more involved) Just tried that and it basically works. However :-): Do you see any way that this would work with custom widgets? It currently doesn't find the imports of the included

[PyKDE] Configuration for pyuic4

2006-01-25 Thread Andreas Pakulat
Hi, I'm currently looking for some options to tweak pyuic4's behaviour. In particular I'd like to a) change the generated filename b) turn off the automatic pyuic4 run for all or specific forms Is there any way to do the 2 things above? Without hacking the code? Andreas -- Questionable day.

Re: [PyKDE] Unable to install eric3

2006-01-25 Thread Andreas Pakulat
On 25.01.06 11:26:21, Kincaid, Larry wrote: Hello- Heard some good things about the eric3 IDE, thought I'd give it a try. However, trying to run install.py, I get the following error: Sorry, please install Qscintilla and/or reinstall PyQt5 with Qscintilla support. This after I just got done

[PyKDE] eric3 Configuration option for pyuic4 [was: Configuration for pyuic4]

2006-01-25 Thread Andreas Pakulat
On 25.01.06 19:22:17, Andreas Pakulat wrote: I'm currently looking for some options to tweak pyuic4's behaviour. In particular I'd like to a) change the generated filename b) turn off the automatic pyuic4 run for all or specific forms Is there any way to do the 2 things above? Without

Re: [PyKDE] [PyQt4] QDate.toString(QtCore.Qt.TextDate) is not UTF-8

2006-01-25 Thread Andreas Pakulat
On 26.01.06 02:53:31, Ismail Donmez wrote: I am using QDate.toString(QtCore.Qt.TextDate) in my application and Turkish characters are malformed unless I do unicode(QDate.toString(QtCore.Qt.TextDate) , I checked the Qt4 apidocs and it says : QString toString ( const QString format )

Re: [PyKDE] Installing PyQt4 on (k)ubuntu

2006-01-24 Thread Andreas Pakulat
On 24.01.06 15:52:07, Fabio Spelta wrote: I created a .ui interface with the Qt4 designer and I converted it to .py with pyuic4. Too bad I can't find the right way to create a main wrapper to show How about: pyuic4 --help? Use the -x Option and then you can just do a python

Re: [PyKDE] Installing PyQt4 on (k)ubuntu

2006-01-24 Thread Andreas Pakulat
On 24.01.06 17:05:01, Fabio Spelta wrote: Since I cannot find documentation about PyQt4 (the doc folder in the latest PyQt snapshot is empty!) I'm not the author of PyQt4, but from what I know and see, PyQt4 is still more or less for developrs only and thus you should be able to find the

Re: [PyKDE] Using UI files in your app with PyQt4

2006-01-24 Thread Andreas Pakulat
On 24.01.06 22:23:30, Detlev Offenbach wrote: I just installed the latest PyQt4 snapshot, which includes your new autoconnect feature. I compiled a .ui file and tried to find some trace of this feature. However, I didn't succeed (maybe I am getting tiered). How does your autoconnect feature

Re: [PyKDE] Using UI files in your app with PyQt4

2006-01-24 Thread Andreas Pakulat
On 24.01.06 22:23:30, Detlev Offenbach wrote: I just installed the latest PyQt4 snapshot, which includes your new autoconnect feature. I compiled a .ui file and tried to find some trace of this feature. However, I didn't succeed (maybe I am getting tiered). How does your autoconnect feature

Re: [PyKDE] Using UI files in your app with PyQt4

2006-01-24 Thread Andreas Pakulat
On 24.01.06 22:47:32, Detlev Offenbach wrote: Am Dienstag, 24. Januar 2006 22:30 schrieb Andreas Pakulat: I think you are, look for connectSlotsByName in the compiled file. Works here perfectly. Doesn't over here. At least my quick test failed. I have a QSpinBox and wanted to have

Re: [PyKDE] Using UI files in your app with PyQt4

2006-01-24 Thread Andreas Pakulat
On 24.01.06 23:47:59, Torsten Marek wrote: Andreas Pakulat schrieb: On 24.01.06 22:47:32, Detlev Offenbach wrote: Am Dienstag, 24. Januar 2006 22:30 schrieb Andreas Pakulat: I think you are, look for connectSlotsByName in the compiled file. Works here perfectly. Doesn't over here

[PyKDE] 2 Bugs in pyuic for custom widgets

2006-01-24 Thread Andreas Pakulat
Hi, first I thought you forgot my fixes for making custom widgets work. However you just implemented them in a better way. Problem is: Both fixes don't work anymore :-( The first one is trivial: I used regexp's for the substitution of / and .h for the header-tag. Now you did use plain string

Re: [PyKDE] Problem with setModel on QTreeView

2006-01-22 Thread Andreas Pakulat
On 22.01.06 11:34:34, Phil Thompson wrote: On Sunday 22 January 2006 12:53 am, Andreas Pakulat wrote: Hi, using setModel() on a QTreeView results in the TreeView loosing it's model, if I don't save a separate reference to it. Following code doesn't work: tree = QtGui.QTreeView

Re: [PyKDE] Using UI files in your app with PyQt4

2006-01-22 Thread Andreas Pakulat
On 22.01.06 15:19:13, Torsten Marek wrote: with the latest pyuic snapshot (should appear somewhere next week) and latest PyQt4/sip snapshot, signal autoconnect now works, which was the last big point for pyuic. Great. If you want to use pyuic code in your own application rather than

Re: [PyKDE] Problem with setModel on QTreeView

2006-01-22 Thread Andreas Pakulat
On 22.01.06 13:41:39, Andreas Pakulat wrote: BTW: Do you have any idea why I can't call model() right after setModel()? I get a None object back. It works when I do have a global reference to the model, but not if I create the Model right inside the setModel call. Forget that, I shouldn't

[PyKDE] eric3 crashes with latest sip and PyQt snapshots

2006-01-21 Thread Andreas Pakulat
Hi, wanted to do some development with eric3 after installing latest sip and PyQt4. Unfortunately eric3 crashed, thus I did a rebuild of PyQt snapshot (20060116) but still eric3 crashes. Backtrace: Using host libthread_db library /lib/tls/libthread_db.so.1. [Thread debugging using libthread_db

Re: [PyKDE] eric3 crashes with latest sip and PyQt snapshots

2006-01-21 Thread Andreas Pakulat
On 21.01.06 18:24:00, Phil Thompson wrote: On Saturday 21 January 2006 6:04 pm, Andreas Pakulat wrote: Hi, wanted to do some development with eric3 after installing latest sip and PyQt4. Unfortunately eric3 crashed, thus I did a rebuild of PyQt snapshot (20060116) but still eric3

Re: [PyKDE] eric3 crashes with latest sip and PyQt snapshots

2006-01-21 Thread Andreas Pakulat
On 21.01.06 20:13:06, Detlev Offenbach wrote: Am Samstag, 21. Januar 2006 19:33 schrieb Andreas Pakulat: On 21.01.06 18:24:00, Phil Thompson wrote: On Saturday 21 January 2006 6:04 pm, Andreas Pakulat wrote: Hi, wanted to do some development with eric3 after installing latest sip

[PyKDE] Problem with setModel on QTreeView

2006-01-21 Thread Andreas Pakulat
Hi, using setModel() on a QTreeView results in the TreeView loosing it's model, if I don't save a separate reference to it. Following code doesn't work: tree = QtGui.QTreeView() tree.setModel(SomeTreeModel(tree)) tree.show() The tree is empty, however first creating a variable pointing to the

[PyKDE] Suggestions for qtdemo porting

2006-01-20 Thread Andreas Pakulat
Hi, porting qtdemo I came to another problem: The directories in PyQt4 don't have _any_ documentation, especially no README file that explains what type of examples are contained in that directory. So the question is: Rewrite the function that finds and reads this README so that it instead

[PyKDE] gui-lockup with eric3

2006-01-20 Thread Andreas Pakulat
Hi, I locked eric3's GUI as it seems. I was debugging an application and clicked on the icon, ending the debugger. Before the debugger was completely done closing (i.e. the toolbars and views were just beeing rearranged) in a hurry I clicked the execute project button and hit enter when the

[PyKDE] Converions between QString and str in PyQt4

2006-01-20 Thread Andreas Pakulat
Hi, I have an issue with conversion between QString and str. The problem I have is as follows: create a QtCore.QVariant(true) and calling it's toBool() function returns false, regardless of what the string actually contains Use an explicit QtCore.QString(true) constructor and everythings fine.

Re: [PyKDE] PyKDE concatenation and gcc4.0.3 [was: New PyKDE snapshot - help needed]

2006-01-20 Thread Andreas Pakulat
On 20.01.06 20:53:13, Stephan Hermann wrote: Hi Jim, On Friday 20 January 2006 20:03, Jim Bublitz wrote: On an 800MHz machine with a 100MHz front side bus, the concatenated version using gcc 3 takes about 45 minutes, the non-concatenated version with gcc 4 takes about 75 minutes, and (as

Re: [PyKDE] New PyKDE snapshot - help needed

2006-01-19 Thread Andreas Pakulat
On 18.01.06 23:01:01, Jim Bublitz wrote: I also need feedback on whether this snapshot builds on various systems - I currently am only setup to test on SuSE so none of this has been tested on Fedora, Mandriva, Ubuntu or Gentoo. I don't expect major problems. Ok, here you go: uptodate Debian

[PyKDE] PyKDE concatenation and gcc4.0.3 [was: New PyKDE snapshot - help needed]

2006-01-19 Thread Andreas Pakulat
On 19.01.06 14:22:53, Andreas Pakulat wrote: On 18.01.06 23:01:01, Jim Bublitz wrote: I also need feedback on whether this snapshot builds on various systems - I currently am only setup to test on SuSE so none of this has been tested on Fedora, Mandriva, Ubuntu or Gentoo. I don't expect

Re: [PyKDE] porting qtdemo example

2006-01-16 Thread Andreas Pakulat
On 16.01.06 10:08:03, Phil Thompson wrote: On Sunday 15 January 2006 12:24 am, Andreas Pakulat wrote: I think it's best if we keep everything relative to the qtdemo directory, then it doesn't matter where they reside - so long as they are kept together. Let's say there will be a Examples

[PyKDE] Another problem with custom widgets and pyuic4

2006-01-16 Thread Andreas Pakulat
Hi, Torsten this is for you: There is a problem setting various parameters on custom widgets, for example changing the sizePolicy in designer for a custom widget results in pyuic4 failing to generate the code with: [EMAIL PROTECTED]:~/projects/pyfilmdbsimpleui/uipyuic4 moviewidget.ui -o

Re: [PyKDE] Another problem with custom widgets and pyuic4

2006-01-16 Thread Andreas Pakulat
On 16.01.06 18:17:18, Torsten Marek wrote: Andreas Pakulat schrieb: Hi, Torsten this is for you: There is a problem setting various parameters on custom widgets, for example changing the sizePolicy in designer for a custom widget results in pyuic4 failing to generate the code

Re: [PyKDE] Another problem with custom widgets and pyuic4

2006-01-16 Thread Andreas Pakulat
On 16.01.06 17:11:53, Andreas Pakulat wrote: Hi, Torsten this is for you: Replying to my own bug report: The error was in my patch that made custom widgets work. The default base class needs to be QWidget not QObject on line 352 in uiparser.py. Phil can you please fix that when you release

Re: [PyKDE] porting qtdemo example

2006-01-16 Thread Andreas Pakulat
On 15.01.06 01:24:26, Andreas Pakulat wrote: Hi, I'm currently porting the qtdemo example, so far the code has no or (hopefully) only little obvious errors. The whole drawing-stuff does not yet work but I have to work my way through the different classes to get that fixed. Ok, here's

Re: [PyKDE] strange problems with lxml and PyQt4

2006-01-15 Thread Andreas Pakulat
On 12.01.06 18:21:31, Andreas Pakulat wrote: On 12.01.06 09:48:24, Phil Thompson wrote: You need to post a short, but complete, example that demonstrates the problem. No Problem, is attached including a sample xml file. Nobody has an idea why this happens? Or does nobody see the problem

Re: [PyKDE] strange problems with lxml and PyQt4

2006-01-15 Thread Andreas Pakulat
On 16.01.06 00:54:48, Andreas Pakulat wrote: On 12.01.06 18:21:31, Andreas Pakulat wrote: On 12.01.06 09:48:24, Phil Thompson wrote: You need to post a short, but complete, example that demonstrates the problem. No Problem, is attached including a sample xml file. Nobody has

[PyKDE] connect with signals

2006-01-14 Thread Andreas Pakulat
Hi, is it possible with PyQt4 to connect 2 signals with each other? If so, how? Without an intermediate slot? Andreas -- Accent on helpful side of your nature. Drain the moat. ___ PyKDE mailing listPyKDE@mats.imk.fraunhofer.de

Re: [PyKDE] connect with signals

2006-01-14 Thread Andreas Pakulat
On 14.01.06 18:18:44, Phil Thompson wrote: On Saturday 14 January 2006 5:59 pm, Andreas Pakulat wrote: Hi, is it possible with PyQt4 to connect 2 signals with each other? If so, how? Without an intermediate slot? The same way you do it in Qt - pass a SIGNAL() rather than a SLOT

[PyKDE] porting qtdemo example

2006-01-14 Thread Andreas Pakulat
Hi, I'm currently porting the qtdemo example, so far the code has no or (hopefully) only little obvious errors. The whole drawing-stuff does not yet work but I have to work my way through the different classes to get that fixed. However, there are some things I'd like to discuss here, as the

Re: [PyKDE] PyQt4 Menu Seg Fault

2006-01-13 Thread Andreas Pakulat
On 13.01.06 09:20:28, Phil Thompson wrote: On Friday 13 January 2006 2:02 am, Doug Bell wrote: Hi - Menus in PyQt4 work fine when a separate action is created and assigned to a menu item, but there is a problem when defining the action within an overloaded QMenu.addAction() method. The

Re: [PyKDE] PyQt4 Menu Seg Fault

2006-01-13 Thread Andreas Pakulat
On 13.01.06 10:32:08, Phil Thompson wrote: On Friday 13 January 2006 10:11 am, Andreas Pakulat wrote: Anybody else see a problem? Yes selecting the Broken Action gives me: Can you build SIP and PyQt with debugging symbols (-u to configure.py)? Otherwise the backtrace isn't very

Re: [PyKDE] Problem starting PyQt4 programs from eric3

2006-01-13 Thread Andreas Pakulat
On 13.01.06 18:41:03, Detlev Offenbach wrote: Am Mittwoch, 11. Januar 2006 19:41 schrieb Andreas Pakulat: How about adding (Qt3) to the label of the default one and change no Qt to no Qt3? That would IMHO be more clear as to what the default client uses, especially as eric3 snapshots

Re: [PyKDE] strange problems with lxml and PyQt4

2006-01-12 Thread Andreas Pakulat
On 12.01.06 09:48:24, Phil Thompson wrote: You need to post a short, but complete, example that demonstrates the problem. No Problem, is attached including a sample xml file. When people select code fragments to post, but can't find the error, its usually because they are looking in the

Re: [PyKDE] Auto-Connection supported in PyQt4

2006-01-11 Thread Andreas Pakulat
On 11.01.06 03:25:23, Andreas Pakulat wrote: is the auto-connection feature of QObject supported with PyQt4? Will it be supported in the future? I just tried with a function that is called: on_removePictureFormat_clicked(self) in a widget that uses a ui created with designer

Re: [PyKDE] Problem starting PyQt4 programs from eric3

2006-01-11 Thread Andreas Pakulat
On 11.01.06 19:04:19, Detlev Offenbach wrote: Am Mittwoch, 11. Januar 2006 12:41 schrieb Andreas Pakulat: On 11.01.06 08:15:18, Phil Thompson wrote: On Wednesday 11 January 2006 12:24 am, Andreas Pakulat wrote: Hi, just discovered that I can't seem to start PyQt4 programs

[PyKDE] strange problems with lxml and PyQt4

2006-01-11 Thread Andreas Pakulat
Hi, following Traceback: Traceback (most recent call last): File /home/andreas/projects/pyfilmdbsimpleui/widgets/pictureformatwidget.py, line 105, in on_removePictureFormat_clicked model.removeRows(index.row(), 1, index.parent()) File

Re: [PyKDE] PyQt4 custom widgets

2006-01-10 Thread Andreas Pakulat
On 10.01.06 10:42:03, Torsten Marek wrote: Couldn't let it lie around ;-) So here's a small patch which makes empty extends-Elements work and also corrects the import statements by simply transforming whatever is in the header-element to a pythonic module-path. The latter means

[PyKDE] Problem starting PyQt4 programs from eric3

2006-01-10 Thread Andreas Pakulat
Hi, just discovered that I can't seem to start PyQt4 programs that import QtCore from eric3. I get a runtime exception telling me that QtCore and qt wrap the QObject class. I'm pretty sure that this is not really an eric3-problem, running such a program from eric3 is just the easiest way to get

[PyKDE] Auto-Connection supported in PyQt4

2006-01-10 Thread Andreas Pakulat
Hi, is the auto-connection feature of QObject supported with PyQt4? Will it be supported in the future? I just tried with a function that is called: on_removePictureFormat_clicked(self) in a widget that uses a ui created with designer and inheriting from that ui. So removePictureFormat is in

Re: [PyKDE] PyKDE snapshot snapshot-20051013 and sip snapshots

2006-01-09 Thread Andreas Pakulat
On 09.01.06 00:13:18, Jim Bublitz wrote: On Sunday 08 January 2006 06:39, Andreas Pakulat wrote: Traceback (most recent call last): File configure.py, line 894, in ? main(sys.argv) File configure.py, line 866, in main generate_code (module, pykde_imports [module], extra_lib

Re: [PyKDE] Using QFileDialog

2006-01-09 Thread Andreas Pakulat
On 09.01.06 17:12:48, piotr maliƄski wrote: I'm learning pyQT and I have a problem with QFileDialog - how can I get the selected filename? I've made a simple form: a pushbutton that onlick runs function test which opens the filedialog (in -- void Form1::test() {

[PyKDE] eric3 problems with subversion support

2006-01-09 Thread Andreas Pakulat
Hi, I have a slight problem here with eric3's subversion support: It always asks for the password on the xterm I started eric3 from, I can't use the edit-field in the dialog. However the question wether I want to accept the servers certificate can be answered only using the linedit in the

[PyKDE] PyQt4 custom widgets

2006-01-09 Thread Andreas Pakulat
Hi, pyuic4 refuses to generate .py's for Forms that include non-standard widgets: [EMAIL PROTECTED]:~/projects/pyfilmdbsimpleui/widgets/uipyuic4 versionwidget.ui DEBUG:root:UI version is 4.0 DEBUG:root:uiname is VersionWidget Traceback (most recent call last): File

[PyKDE] eric3 generates execution code for ui-files with pyuic4

2006-01-09 Thread Andreas Pakulat
Hi, just discovered that eric3 calls pyuic4 with the -x Option. This creates a __main__-Part for every widget. I don't want that so please add an Option or tell me where I can turn this off. Andreas -- Better hope the life-inspector doesn't come around while you have your life in such a mess.

Re: [PyKDE] eric3 generates execution code for ui-files with pyuic4

2006-01-09 Thread Andreas Pakulat
On 09.01.06 21:08:40, Detlev Offenbach wrote: Am Montag, 9. Januar 2006 20:09 schrieb Andreas Pakulat: Hi, just discovered that eric3 calls pyuic4 with the -x Option. This creates a __main__-Part for every widget. I don't want that so please add an Option or tell me where I can turn

Re: [PyKDE] PyQt4 custom widgets

2006-01-09 Thread Andreas Pakulat
On 09.01.06 20:05:09, Andreas Pakulat wrote: pyuic4 refuses to generate .py's for Forms that include non-standard widgets: [EMAIL PROTECTED]:~/projects/pyfilmdbsimpleui/widgets/uipyuic4 versionwidget.ui DEBUG:root:UI version is 4.0 DEBUG:root:uiname is VersionWidget Traceback (most

Re: [PyKDE] PyQt4 custom widgets

2006-01-09 Thread Andreas Pakulat
On 09.01.06 22:24:57, Phil Thompson wrote: On Monday 09 January 2006 9:19 pm, Andreas Pakulat wrote: As you can see pyuic4 generates totally nonsense import statements (or is python able to parse C++ header files?). I guess Phil you didn't invest much time on pyuic4 regarding this, did you

Re: Re: [PyKDE] eric and PyQt4

2006-01-09 Thread Andreas Pakulat
On 09.01.06 23:36:08, [EMAIL PROTECTED] wrote: To use PyQt4 you must also have the latest SIP *and* PyQt3 snapshots installed. I have both installed, PyQt3 and PyQt4 and the latest SIP. I wonder if anybody managed to get eric3 running on a system with the latest SIP and PyQt4 installed.

Re: [PyKDE] PyQt4 custom widgets

2006-01-09 Thread Andreas Pakulat
On 09.01.06 23:42:06, Andreas Pakulat wrote: On 09.01.06 22:24:57, Phil Thompson wrote: On Monday 09 January 2006 9:19 pm, Andreas Pakulat wrote: As you can see pyuic4 generates totally nonsense import statements (or is python able to parse C++ header files?). I guess Phil you didn't

Re: [PyKDE] PyKDE snapshot snapshot-20051013 and sip snapshots

2006-01-08 Thread Andreas Pakulat
On 03.01.06 21:17:18, Jim Bublitz wrote: On Tuesday 03 January 2006 17:05, Andreas Pakulat wrote: Generating the C++ source for the kdecore module... sip: Ptr is undefined [8284 refs] Error: Unable to create the C++ code. This is the second report. I can't reproduce the problem

[PyKDE] PyKDE and 2 qts

2006-01-08 Thread Andreas Pakulat
Hi, to be able to install qscintilla I built a qt3.3.5 in my home and I just saw that PyKDE uses that Qt (through PyQt) even though KDE is built against the Qt3 in /usr. Now I wonder if that is going to lead to any problems? Andreas -- You're ugly and your mother dresses you funny.

Re: [PyKDE] eric and PyQt4

2006-01-06 Thread Andreas Pakulat
On 06.01.06 09:19:50, Phil Thompson wrote: On Friday 06 January 2006 1:26 am, [EMAIL PROTECTED] wrote: Hi, I'm trying to get eric3 and PyQt4 running on my little Gentoo box. eric3 is actually running fine, but as soon as I install the latest sip snapshot, I get the following error, when

[PyKDE] PuzzleWidget from puzzle example creates copies

2006-01-05 Thread Andreas Pakulat
Hi, as Phil missed that there are 2 puzzle-examples (one using a listview one using a listwidget) I ported the dragandrop puzzle example (the one in draganddrop in PyQt4 is actually the listview version). Now using the C++ code I get a PuzzleWidget that actually creates copies when dragging and

Re: [PyKDE] QVariant support in PyQt4

2006-01-04 Thread Andreas Pakulat
On 03.01.06 23:54:47, Phil Thompson wrote: On Friday 30 December 2005 8:36 pm, Andreas Pakulat wrote: Hi, maybe I'm just too stupid, but it seems the following C++ code: qVariantFromValue(QColor(Qt::blue) cannot be correctly ported to PyQt4. Using QtCore.qVariantFromValue

Re: [PyKDE] eric3 snapshot doesn't pick up qt's UI

2006-01-03 Thread Andreas Pakulat
On 03.01.06 11:04:20, Detlev Offenbach wrote: Am Montag, 2. Januar 2006 13:46 schrieb Andreas Pakulat: Hi, I now tried everything that came to my mind, but eric3 doesn't use Qt's UI. Running qtconfig it looks the same as my KDE apps but eric3 looks like a GTK app. The KdeQt/__init__

Re: [PyKDE] eric3 snapshot doesn't pick up qt's UI

2006-01-03 Thread Andreas Pakulat
On 03.01.06 13:32:02, Andreas Pakulat wrote: On 03.01.06 11:04:20, Detlev Offenbach wrote: Am Montag, 2. Januar 2006 13:46 schrieb Andreas Pakulat: I now tried everything that came to my mind, but eric3 doesn't use Qt's UI. Running qtconfig it looks the same as my KDE apps but eric3 looks

[PyKDE] PyKDE snapshot snapshot-20051013 and sip snapshots

2006-01-03 Thread Andreas Pakulat
Hi, I've got a small problem here compiling PyKDE snapshot-20051013: PyKDE version 4.0.0 --- Python include directory is /home/andreas/python2.4/include/python2.4 Python version is 2.4.2 sip version is snapshot-20060102 (4.3.0) Qt directory is /home/andreas/qt3.3.5 Qt

[PyKDE] eric3 snapshot doesn't pick up qt's UI

2006-01-02 Thread Andreas Pakulat
Hi, I now tried everything that came to my mind, but eric3 doesn't use Qt's UI. Running qtconfig it looks the same as my KDE apps but eric3 looks like a GTK app. The KdeQt/__init__.py ist executed and no Exception is raised there. Andreas -- A gift of a flower will soon be made to you.

[PyKDE] property getter mit extra parameter

2006-01-02 Thread Andreas Pakulat
Hi, ist es moeglich eine Property zu haben, deren getter-Methode einen weiteren Parameter (ausser self) benoetigt? Und wenn ja wie benutze ich die? Andreas -- Among the lucky, you are the chosen one. ___ PyKDE mailing list

Re: [PyKDE] property getter mit extra parameter

2006-01-02 Thread Andreas Pakulat
On 02.01.06 18:51:25, Andreas Pakulat wrote: ist es moeglich eine Property zu haben, deren getter-Methode einen weiteren Parameter (ausser self) benoetigt? Und wenn ja wie benutze ich die? Sorry, that was the wrong list. Andreas -- You will inherit some money or a small piece of land

[PyKDE] eric3 still not working with recent PyQt and sip snapshots

2005-12-31 Thread Andreas Pakulat
Hi, eric3 unfortunately still is not working with Python 2.3.5 and latest snapshots from sip and PyQt. It starts and there are no messages in the xterm, but when creating a new file I don't get an editor - the area for the editor is left grey and it seems paint events on that area don't get

Re: [PyKDE] eric3 still not working with recent PyQt and sip snapshots

2005-12-31 Thread Andreas Pakulat
On 31.12.05 11:35:27, Andreas Pakulat wrote: eric3 unfortunately still is not working with Python 2.3.5 and latest snapshots from sip and PyQt. It starts and there are no messages in the xterm, but when creating a new file I don't get an editor - the area for the editor is left grey

[PyKDE] Re: Resp.: eric3 still not working with recent PyQt and sip snapshots

2005-12-31 Thread Andreas Pakulat
On 31.12.05 05:27:26, Douglas Andrade wrote: It is not working to me. Here is the message: [EMAIL PROTECTED] ~]$ eric3 Warning: translation file 'qt_en_US'could not be loaded. Using default. Warning: translation file 'eric3_en_US'could not be loaded. Using default. Warning: translation

Re: [PyKDE] eric3 still not working with recent PyQt and sip snapshots

2005-12-31 Thread Andreas Pakulat
On 31.12.05 14:59:39, Detlev Offenbach wrote: Am Samstag, 31. Dezember 2005 14:15 schrieb Andreas Pakulat: On 31.12.05 11:35:27, Andreas Pakulat wrote: /home/andreas/python2.3/lib/python2.3/site-packages/eric3/QScintilla/QextS cintillaCompat.py, line 103, in clearStyles

Re: [PyKDE] eric3 still not working with recent PyQt and sip snapshots

2005-12-31 Thread Andreas Pakulat
On 31.12.05 18:13:07, Detlev Offenbach wrote: Am Samstag, 31. Dezember 2005 18:06 schrieb Andreas Pakulat: All I can think of right now, would be that somehow the wrong overload is picked for Sendscintilla, i.e. one that has 3 parameteres but the last one is long or char. But that's just me

[PyKDE] QVariant support in PyQt4

2005-12-30 Thread Andreas Pakulat
Hi, maybe I'm just too stupid, but it seems the following C++ code: qVariantFromValue(QColor(Qt::blue) cannot be correctly ported to PyQt4. Using QtCore.qVariantFromValue(QtCore.QVariant(QtGui.QColor(QtCore.Qt.blue))) I get a QVariant which type() function returns type number 66 (which would

[PyKDE] PyQt4 snapshot 20051228 doesn't compile

2005-12-29 Thread Andreas Pakulat
Hi, just fetched latest PyQt4 snapshot and it bauls out very early: [EMAIL PROTECTED]:~/compiling/pyqt/PyQt4-gpl-snapshot-20051228LANG=C make make install make[1]: Entering directory `/home/andreas/compiling/pyqt/PyQt4-gpl-snapshot-20051228/QtCore' g++ -c -pipe -fPIC -O2 -Wall -W -D_REENTRANT

Re: [PyKDE] eric3 snapshot not working

2005-12-29 Thread Andreas Pakulat
On 29.12.05 08:33:45, Douglas Soares de Andrade wrote: Are you using the current PyQt snapshot ? I tried all snapshots since 20051222 (except 28 which is compiling right now). I had this problem with it. You can downgrade the PyQt snapshot that it will run again. If you could tell me where

Re: [PyKDE] PyQt4 snapshot 20051228 doesn't compile

2005-12-29 Thread Andreas Pakulat
On 29.12.05 10:28:38, Phil Thompson wrote: On Thursday 29 December 2005 10:15 am, Andreas Pakulat wrote: Hi, just fetched latest PyQt4 snapshot and it bauls out very early: [EMAIL PROTECTED]:~/compiling/pyqt/PyQt4-gpl-snapshot-20051228LANG=C make make install make[1]: Entering

[PyKDE] PyQt4 problem with QHostAddress

2005-12-29 Thread Andreas Pakulat
Hi, just noticed that tcpClient = QtNetwork.QTcpSocket() tcpClient.connectTo(QtNetwork.QHostAddress(QtNetwork.QHostAddress.LocalHost), 32784) throws an Unsupported socket operation. The same line with QHostAddress(QtCore.QString(127.0.0.1), 32784) works. I have no idea why the LocalHost

Re: [PyKDE] eric3 snapshot not working

2005-12-29 Thread Andreas Pakulat
On 29.12.05 12:03:10, Douglas Soares de Andrade wrote: Sorry... Even the stable eric3 dont wont with the current snapshots. So i cant see any solution. eric3 stable release wouldn't have worked for me anyway. I want/need the PyQt4 features and thus need a snapshot. I can get stable eric3

Re: [PyKDE] eric3 snapshot not working

2005-12-29 Thread Andreas Pakulat
On 29.12.05 19:06:51, Detlev Offenbach wrote: I am back online. Could you send me the message showing where it gets into a self recursion. Thats a bit much for inline posting, thus I'm attaching it. Also, do you have an idea why it doesn't work with Python 2.3.5, see earlier error message by

[PyKDE] PyQt4 and multiple top level windows

2005-12-27 Thread Andreas Pakulat
Hi, how would I go about creating multiple top level windows? I could of course use a global list into which I append all new top level windows, question is: Would QApplication.closeAllWindows catch that? Or what do I need to do to have multi top level mainwindows which are all closed when

<    3   4   5   6   7   8   9   >