[PyKDE] PyQt examples3/SQL/testdb.sql
Phil, If you can use it, I've attached a Postgres copy of the MySql "testdb.sql" thats included with the PyQt examples3/SQL files. I just started testing the sql samples and since my flavor of choice is Postgres, it would have been nice to have a copy included with the samples to create the testdb database. The file is named "pg_testdb.sql" and it creates the same "testdb" as the included MySql file. As a side note, all samples worked good (once the database was created) just by changing the driver to "QPSQL7". By the way I've just started using PyQt and I think it's great, PLEASE, keep up the good work! Ken pg_testdb.sql Description: Binary data
Re: [PyKDE] Re: eric3 python-site files not found
On Friday 29 November 2002 22:03, Arno Paehler wrote: > Hi Detlev, > > I now tried Hans-Peter's script and the problem goes away. > Maybe SuSE need to revise the way they build their rpm. Before I start bugging some people at SuSE, I would like to understand the problem. Phil? As stated before, I see some importance to get this fixed before their next release. I will easily detect this when traffic in suse-beta ML arises again... In the meantime, we already know, how to fix this ;-) Jonathan: I will update sf.net release notes soon... > There is another message that I get but that doesn't seem > to affect eric3's operation. I just include it here for > completeness. > > Arno > > - > > paehler@linux> eric3 > eric: no translation file 'qt_C'found. > Using default. > eric: no translation file 'qscintilla_C'found. > Using default. > eric: no translation file 'eric3_C'found. > Using default. > Please report to <[EMAIL PROTECTED]>. Well, this is related to your locale setting and somewhat expected here. Maybe Detlef should handle this special case, as it doesn't make much sense to search for C locale translations in the first place. BTW, Try LC_CTYPE=de_DE@euro eric3 to enable the german translation. (I expect you to be a native german speaker, even if it appears, that you're sitting on the other side of the globe ;-) [...] Hans-Peter ___ PyKDE mailing list[EMAIL PROTECTED] http://mats.gmd.de/mailman/listinfo/pykde
Re: [PyKDE] Reimplementing QApplication.notify
> >return receiver.event(event) > > return QPEApplication.notify(self,receiver,event) > > might improve things. Ah... the obvious solution... Yes, that does help. At least to avoid the error message. I still can't intercept the Esc key. After a quick glance at the Qtopia source code, there seems to be no solution for that one except for renaming my application "embeddedkonsole". Yes, that's right, the Qtopia source code contains an explicit exception for one application! Everything else is terminated by pressing the Esc key. Konrad. ___ PyKDE mailing list[EMAIL PROTECTED] http://mats.gmd.de/mailman/listinfo/pykde
Re: [PyKDE] Installation Help With PyQt-x11-gpl-3.4 with Python 2.2
Ok. My email system has been cutting my email short (only sending the first paragraph). I AM NOW VERY ANGRY (this is the 3ed time I have had to write this email). I am going to have to send everything via a attached plain text file. Pleas read it. From: Jonathan Gardner <[EMAIL PROTECTED]> To: "James Supancic" <[EMAIL PROTECTED]> Subject: Re: [PyKDE] Installation Help With PyQt-x11-gpl-3.4 with Python 2.2 Date: Fri, 29 Nov 2002 12:17:33 -0800 MIME-Version: 1.0 Received: from sccrmhc03.attbi.com ([204.127.202.63]) by mc6-f28.law1.hotmail.com with Microsoft SMTPSVC(5.0.2195.5600); Fri, 29 Nov 2002 12:16:02 -0800 Received: from atlas.home ([12.242.174.49]) by sccrmhc03.attbi.com (sccrmhc03) with SMTP id <2002112920160100300ko143e>; Fri, 29 Nov 2002 20:16:01 + User-Agent: KMail/1.4.1 References: <[EMAIL PROTECTED]> In-Reply-To: <[EMAIL PROTECTED]> Message-Id: <[EMAIL PROTECTED]> Return-Path: [EMAIL PROTECTED] X-OriginalArrivalTime: 29 Nov 2002 20:16:02.0435 (UTC) FILETIME=[23898D30:01C297E4] On Friday 29 November 2002 11:56 am, James Supancic wrote: > Ok for some reason the out put is not getting sent so I attached it to the > email (hopefully you get it that way). I downloaded the RMPs and tried to > use them but they keep giving me dependency errors. Witch one do I install > fist? First you need to install sip, then PyQt, then PyKDE. If you forced any of them, it might be good to start from scratch. Try this: # rpm -qa | grep PyKDE # rpm -qa | grep PyQt # rpm -qa | grep sip and for all the modules listed, run # rpm -e As you install the packages, if you get any dependency problems, email me the exact text it spits out. > Also I have two versions of python installed. How do I make sure the > RPM installs for the rite version of Python? I can send the entire > installation output (its rely long...) if you need it. I made my stuff with Python2.2. You can run it from the command line with 'python2' rather than 'python'. You can try running the scripts with 'python2 ' rather than 'python
Re: [PyKDE] Re: eric3 python-site files not found
Hi Detlev, I now tried Hans-Peter's script and the problem goes away. Maybe SuSE need to revise the way they build their rpm. There is another message that I get but that doesn't seem to affect eric3's operation. I just include it here for completeness. Arno - paehler@linux> eric3 eric: no translation file 'qt_C'found. Using default. eric: no translation file 'qscintilla_C'found. Using default. eric: no translation file 'eric3_C'found. Using default. Please report to <[EMAIL PROTECTED]>. - On Friday 29 November 2002 10:21, Detlev Offenbach wrote: > Am Donnerstag, 28. November 2002 00:26 schrieb Hans-Peter Jansen: > > Hi Arno, > > > > what about subscribing PyKDE? Pretty low traffic ML. > > > > On Tuesday 26 November 2002 12:47, you wrote: > > > Hi, > > > > > > when single-stepping through some of my python files with eric3 > > > I get an error dialog with the message > > > > > > The file > > > /var/tmp/python-2.2.1-build/usr/lib/python2.2/sre.py > > > could not be opened. > > > > > > I am using python-2.2.1-45 from SuSE 8.1. I also have the rpm > > > python-nothreads-2.2.1-45 installed, not sure whether that > > > maytters. The same python files run fine outside of eric3. > > > > > > The filename in the message looks like a leftover from a build. > > > > The problem seems to be related to the way, how eric resolves > > the path of the source (using the path provided in the *.py{c,o} > > files). This clashes with the way, SuSE built their python package, > > which leads to these strange messages from eric. > > The problem is not related to eric3 as eric3 does not do any special path > resolving. It relies purely on the Python mechanisms. As Hans-Peter as > indicated it is a problem related to SuSE 8.1. Simply recompiling the > python files by performing the following steps. > > cd /usr/lib/python2.2 > python compileall.py -f . > > or use Hans-Peters script. > > Detlev ___ PyKDE mailing list[EMAIL PROTECTED] http://mats.gmd.de/mailman/listinfo/pykde
Re: [PyKDE] Reimplementing QApplication.notify
On Friday 29 November 2002 8:36 pm, Konrad Hinsen wrote: > A rather annoying feature of Qtopia applications is that they are > terminated whenever the user presses the Esc key. On the Zaurus > developer list, I got the tip that this feature could only be disabled > by reimplementing QPEAppliction.notify, as no lower level ever gets to > see the key press event. So I tried > >class MyApplication(QPEApplication): > >def notify(self, receiver, event): > if event.type() == QEvent.KeyPress and event.key() == Qt.Key_Escape: > pass > else: > return receiver.event(event) return QPEApplication.notify(self,receiver,event) might improve things. >app = MyApplication(sys.argv) > > but got nothing but the error message > >RuntimeError: No access to protected functions or signals for object > not created from Python > > for the call to receiver.event(event). > > Is there any way around this? Difficult to say with an incomplete code fragment. Are you calling the QPEApplication ctor? Phil ___ PyKDE mailing list[EMAIL PROTECTED] http://mats.gmd.de/mailman/listinfo/pykde
[PyKDE] Reimplementing QApplication.notify
A rather annoying feature of Qtopia applications is that they are terminated whenever the user presses the Esc key. On the Zaurus developer list, I got the tip that this feature could only be disabled by reimplementing QPEAppliction.notify, as no lower level ever gets to see the key press event. So I tried class MyApplication(QPEApplication): def notify(self, receiver, event): if event.type() == QEvent.KeyPress and event.key() == Qt.Key_Escape: pass else: return receiver.event(event) app = MyApplication(sys.argv) but got nothing but the error message RuntimeError: No access to protected functions or signals for object not created from Python for the call to receiver.event(event). Is there any way around this? Konrad. ___ PyKDE mailing list[EMAIL PROTECTED] http://mats.gmd.de/mailman/listinfo/pykde
Re: [PyKDE] Installation Help With PyQt-x11-gpl-3.4 with Python 2.2
Ok for some reason the out put is not getting sent so I attached it to the email (hopefully you get it that way). I downloaded the RMPs and tried to use them but they keep giving me dependency errors. Witch one do I install fist? Also I have two versions of python installed. How do I make sure the RPM installs for the rite version of Python? I can send the entire installation output (its rely long...) if you need it. I am rely mad about this. I spent about 2 hours setting it all up and waiting for it to make! I hope you can help me fix this! Thank you for your time, James S Supancic III NOTE: For some reason the message got cut short last time... _ STOP MORE SPAM with the new MSN 8 and get 2 months FREE* http://join.msn.com/?page=features/junkmail PythonOutput Description: Binary data
Re: [PyKDE] eric3 alt. layout
Am Freitag, 29. November 2002 00:01 schrieb Hans-Peter Jansen: > Hi Detlev, Hi PyQties, > > here's a patch to top of ericgeom.diff, which implements an > _experimental_ alternate layout. If you want your old layout back, set > self.layoutstyle = "qtdes" in UserInterface.py. Expect a restored > geometry to be mangled. It separates Browser, Inspector, and Log > component on the left pane, in order to get a bigger editing space. > Here is a screenshot: http://lisa-gmbh.de/download/eric3alt.jpg (80k) >full size: http://lisa-gmbh.de/download/eric3altfull.jpg > (165k) Yes, I'm using a uncommon color set. Note also, that this one > uses smaller icons 20x18, opposed to the genuine 22x22. > [ericIconsShrink1.tar.gz] Detlev: Sorry, the first icon patchset was > broken. Please try this one. > > Comments welcome. > Ok, this layout gives you much more editor space. However, you loose the space needed for debugging (showing the variables) and the project browser. If you need more editor space, simply move the slider to the right and there you go. Alpha3 of eric3 will have a second layout option upon several request. These people wanted more horizontal space for the shell and the log view. Detlev -- Detlev Offenbach [EMAIL PROTECTED] ___ PyKDE mailing list[EMAIL PROTECTED] http://mats.gmd.de/mailman/listinfo/pykde
Re: [PyKDE] ANN: Packages for Eric, the Python IDE
Am Freitag, 29. November 2002 19:45 schrieb Peter Osborne: > On November 27, 2002 04:06 pm, Detlev Offenbach wrote: > > It is already there. They are just not shown as a folder in the > > project browser. The display is a flat one. However, if you add a > > file to a subdirectory of your project directory, the subdir is > > created and the file placed there. In the browser it is shown like > > "subdir/file.py". In addition to that eric will search for new files > > in these subdirectories upon opening a project (if this feature is > > enabled). > > I'm a little confused how this works. I currently have a fairly large > project with about 6 subdirectories and probably 30 or 40 files in it. > I have a subdirectory called "ui" in the main directory and it > contains all my ui files. When I add one of these forms to the > project, it copies it to the main directory rather than leaving it and > using it in it's original location. > > Is Eric supposed to work this way? If so, maybe I can rearrange my > project a bit. > > Thanks, > -Pete > The way how to simply add the file without moving it is to enter the directory of the file as the target, i.e. your file is "/projectdir/subdir/file.py" in the target entry enter "/projectdir/subdir". eric3 recognises this and adds the file without copying it. Internally the subdirectory is registered as well. Alpha3 of eric3 will have an additional action to search for new files while the project is open. That is the same function that is performed when a project is opened. You have to enable the automatism on the Project tab of the preferences dialog. At the moment there is no "Add directory to project" function. I will put this on the TODO list because I don't intend to add more functionality for 3.0.0. At the moment I would like to concentrate on bug fixes to reach the final release fairly soon. Regards Detlev -- Detlev Offenbach [EMAIL PROTECTED] ___ PyKDE mailing list[EMAIL PROTECTED] http://mats.gmd.de/mailman/listinfo/pykde
Re: [PyKDE] Re: eric3 python-site files not found
Am Donnerstag, 28. November 2002 00:26 schrieb Hans-Peter Jansen: > Hi Arno, > > what about subscribing PyKDE? Pretty low traffic ML. > > On Tuesday 26 November 2002 12:47, you wrote: > > Hi, > > > > when single-stepping through some of my python files with eric3 > > I get an error dialog with the message > > > > The file > > /var/tmp/python-2.2.1-build/usr/lib/python2.2/sre.py > > could not be opened. > > > > I am using python-2.2.1-45 from SuSE 8.1. I also have the rpm > > python-nothreads-2.2.1-45 installed, not sure whether that > > maytters. The same python files run fine outside of eric3. > > > > The filename in the message looks like a leftover from a build. > > The problem seems to be related to the way, how eric resolves > the path of the source (using the path provided in the *.py{c,o} > files). This clashes with the way, SuSE built their python package, > which leads to these strange messages from eric. The problem is not related to eric3 as eric3 does not do any special path resolving. It relies purely on the Python mechanisms. As Hans-Peter as indicated it is a problem related to SuSE 8.1. Simply recompiling the python files by performing the following steps. cd /usr/lib/python2.2 python compileall.py -f . or use Hans-Peters script. Detlev -- Detlev Offenbach [EMAIL PROTECTED] ___ PyKDE mailing list[EMAIL PROTECTED] http://mats.gmd.de/mailman/listinfo/pykde
Re: [PyKDE] ANN: Packages for Eric, the Python IDE
On November 27, 2002 04:06 pm, Detlev Offenbach wrote: > It is already there. They are just not shown as a folder in the project > browser. The display is a flat one. However, if you add a file to a > subdirectory of your project directory, the subdir is created and the > file placed there. In the browser it is shown like "subdir/file.py". In > addition to that eric will search for new files in these subdirectories > upon opening a project (if this feature is enabled). I'm a little confused how this works. I currently have a fairly large project with about 6 subdirectories and probably 30 or 40 files in it. I have a subdirectory called "ui" in the main directory and it contains all my ui files. When I add one of these forms to the project, it copies it to the main directory rather than leaving it and using it in it's original location. Is Eric supposed to work this way? If so, maybe I can rearrange my project a bit. Thanks, -Pete ___ PyKDE mailing list[EMAIL PROTECTED] http://mats.gmd.de/mailman/listinfo/pykde
Re: [PyKDE] Installation Help With PyQt-x11-gpl-3.4 with Python 2.2
On Friday 29 November 2002 12:13 am, James Supancic wrote: > I am trying to insatl Python Qt 3.4 with Python 2.2 on Red Hat Linux 7.3 > This is the error I get when I try to use a program requiring PyQt to be > installed - > James, I didn't see the error you are talking about. Please post again with the error. Also, please let us know what the program is that you are trying to run. There are Red Hat 7.3 RPMs available for PyQt and sip 3.4. You may also want to try to install or upgrade to those. See http://sourceforge.net/project/showfiles.php?group_id=61057 for those files. -- Jonathan Gardner [EMAIL PROTECTED] ___ PyKDE mailing list[EMAIL PROTECTED] http://mats.gmd.de/mailman/listinfo/pykde
Re: [PyKDE] Dialog ignoring Mode flag
Am Fre, 2002-11-29 um 15.05 schrieb George Moody: > Using this simple dialog (shown below), I am unable to get it to display in > modeless form, irrespective of how the modal value is set in the Qdialog > creation. A modeless dialog has to be show()'n, not exec_loop'ed :) Cheers, Mickey. -- :M: -- Dipl.-Inf. Michael 'Mickey' Lauer [EMAIL PROTECTED] Raum 10b - ++49 69 798 28358 Fachbereich Informatik und Biologie -- ___ PyKDE mailing list[EMAIL PROTECTED] http://mats.gmd.de/mailman/listinfo/pykde
[PyKDE] Dialog ignoring Mode flag
Using this simple dialog (shown below), I am unable to get it to display in modeless form, irrespective of how the modal value is set in the Qdialog creation. Have I missed something in the documentation? I'm using SUSE8.1 and the latest RPM's from Sourceforge. Regards George import sys from qt import * qtapp= QApplication(sys.argv) splash=QDialog(None,None,0,0) splashimage = QPixmap("splash.png") splash.setFixedSize(splashimage.size()) splash.PixmapLabel1 = QLabel(splash,"PixmapLabel1") splash.PixmapLabel1.setMaximumSize(splash.size()) splash.PixmapLabel1.setMinimumSize(splash.size()) splash.PixmapLabel1.setPixmap(splashimage) splash.exec_loop() appwin = QMainWindow() butt = QPushButton(appwin,"Hello") appwin.setCentralWidget(butt) appwin.show() qtapp.exec_loop() ___ PyKDE mailing list[EMAIL PROTECTED] http://mats.gmd.de/mailman/listinfo/pykde
[PyKDE] QComboBox and grabKeyboard problem
I'm having problems getting the grabKeyboard method to work with QComboBox. Below is a small sample program that demonstrates my problem. If I swap the QComboBox for a QLineEdit grabKeyboard works as expected I'm using QT 3.0.6 and the latest PyQT snapshot. Any help on this would be greatly appreciated. Patrick Gaherty from qt import * import sys class Dialog(QDialog): def __init__(self,*args): QDialog.__init__(self,*args) layout = QHBoxLayout(self) self.CBox1 = QComboBox(0,self,"CBox1") self.CBox1.setEditable(1) layout.addWidget(self.CBox1) self.CBox1.grabKeyboard() print self.keyboardGrabber() def main(): app = QApplication(sys.argv) win = Dialog() win.show() app.connect(app, SIGNAL("lastWindowClosed()"), app, SLOT("quit()")) app.exec_loop() if __name__ == '__main__': main() ___ PyKDE mailing list[EMAIL PROTECTED] http://mats.gmd.de/mailman/listinfo/pykde
[PyKDE] Installation Help With PyQt-x11-gpl-3.4 with Python 2.2
I am trying to insatl Python Qt 3.4 with Python 2.2 on Red Hat Linux 7.3 This is the error I get when I try to use a program requiring PyQt to be installed - _ MSN 8 helps eliminate e-mail viruses. Get 2 months FREE*. http://join.msn.com/?page=features/virus ___ PyKDE mailing list[EMAIL PROTECTED] http://mats.gmd.de/mailman/listinfo/pykde
[PyKDE] Installation Help With PyQt-x11-gpl-3.4 with Python 2.2
I am trying to insatl Python Qt 3.4 with Python 2.2 on Red Hat Linux 7.3 This is the error I get when I try to use a program requiring PyQt to be installed - _ MSN 8 with e-mail virus protection service: 2 months FREE* http://join.msn.com/?page=features/virus ___ PyKDE mailing list[EMAIL PROTECTED] http://mats.gmd.de/mailman/listinfo/pykde