[PyKDE] i18n support in eric
This is my first post, and I don't know if this is the correct list... so I apologize in casse is off topic. I've been using eric3 to develop a tiny application and I want to add i18n support. I've try to add a .ts to the project with the Add translation.. from the context menu... it add the entry but it desn't create a proper file!! I had to create my .pro outside eric3 and run pylupdate by hand (is this normal??) so I could double-click it and Qt-Linguist apear.. everything almost great: pyupdate ('Generate translation') and lrelease ('Release translations') inside eric3 don't apear as active in the context menu. is there ANY configuration I should be setting in order to use those features? tnx in advance -- Nicolás D. César [EMAIL PROTECTED] Lunix S.R.L. -[ http://www.lunix.com.ar ]- LUGLi Grupo de Usuarios de Software Libre del Litoral Unite! -[ www.lugli.org.ar ]- pgp4J5R8ZKq58.pgp Description: PGP signature ___ PyKDE mailing list[EMAIL PROTECTED] http://mats.imk.fraunhofer.de/mailman/listinfo/pykde
[PyKDE] embedding doc strings in sip-generated code?
Is there a way to include some __doc__ code in a sip-generated python module? I've written some new widgets and it would be great for my users if they could access usage information via pydoc. Is that possible with sip? Bret Wortman ___ PyKDE mailing list[EMAIL PROTECTED] http://mats.imk.fraunhofer.de/mailman/listinfo/pykde
Re: [PyKDE] KDE yum repositories not working
Ken, I have good news and bad news. The good news is I figured out a solution to the GPG key problem -- in yum.conf, for the RedHat KDE repositories, turn off GPG key checking. The bad new is this is not working. I found a list of KDE RedHat repositories here: http://apt.kde-redhat.org/kde-redhat/kde-redhat/3/mirrors.list I can access some but not all. For example, on the first one listed, http://apt.kde-redhat.org/apt, I can see headers.info on the directory listing, but access forbidden. http://apt.kde-redhat.org/apt/3/os/headers/header.info Anyway, I went down the list, and put all that I could access into my yum.conf file. There are too many unresolved dependencies -- 86 in all. I put the screen capture below this message. I wondered whether I could install everything up to eric, and then build eric. When I got on this list, I was at the point of upgrading to a more recent version of sip. So a while ago I tried just yum upgrade sip. No go -- sip requires python 2.3, which is not available. Actually, python 2.3 is installed on this machine, but not via yum. I downloaded the rpm's from the python site, and installed 2.3 separately. This is OK -- see: http://www.python.org/2.3.4/rpms.html begin quote Q) Is it safe to install these RPMs on a Red Hat system? Will they over-write the system python and cause problems with other Red Hat applications that expect a different version of Python? A) The RPMs that start with python2.3 are built to not interfere with the system Python. They install as /usr/bin/python2.3 and will not conflict with the system Python unless you are running on a system that ships the a version of Python which has the same major/minor number. To invoke the interpreter with these packages, you will explicitly have to run python2.3. Note that all Python RPMs provided by Python.org and Red Hat provide a /usr/bin/python2.3 (or similar, with major/minor number), even if they also provide /usr/bin/python. So, yes, it should be safe. end quote RedHat hard coded python2.2 in some RHEL packages. I think they did this so any future python update incompatibilities would never mess up RedHat's paying customers. I am OK with this, considering RedHat's position in the open source world. But since I installed python 2.3 outside of yum, yum does not know about python 2.3. And the more recent sip required python 2.3. So one cannot upgrade sip via yum. Also note on the LONG list of incompatibilities below, eric needs python 2.3. I have come to the conclusion that yum updates are absolutely impossible on RHEL for any package that depend on python2.3. To use eric on RedHat, I think fedora is the only option at this time. Did I miss anything? Thanks, Rick long listing below: [EMAIL PROTECTED] root]# yum install eric Gathering header information file(s) from server(s) Server: CentOS-3.3 - Addons Server: CentOS-3.3 - Base Server: CentOS-3.3 - Extras Server: RedHat KDE Deutchland Server: RedHat KDE UK Server: RedHat KDE USA Server: Macromedia Flash Player for Red Hat Linux 3 Server: CentOS-3.3 - Updates Finding updated packages Downloading needed headers Resolving dependencies ..Unable to satisfy dependencies Package arts-devel needs libstdc++.so.6(GLIBCXX_3.4). Package libmusicbrainz needs libstdc++.so.6(GLIBCXX_3.4). Package kdevelop needs libc.so.6(GLIBC_2.3.4). Package kdevelop needs libstdc++.so.6(GLIBCXX_3.4). Package kdelibs-devel needs libstdc++.so.6(GLIBCXX_3.4). Package arts needs libasound.so.2. Package arts needs libasound.so.2(ALSA_0.9). Package arts needs libstdc++.so.6(GLIBCXX_3.4). Package PyQt needs libstdc++.so.6(GLIBCXX_3.4). Package PyQt needs python = 2.3. Package libtunepimp needs libFLAC.so.4. Package libtunepimp needs libstdc++.so.6(GLIBCXX_3.4). Package kdeaddons needs libasound.so.2. Package kdeaddons needs libdb_cxx-4.2.so. Package kdeaddons needs libidn.so.11. Package kdeaddons needs libstdc++.so.6(GLIBCXX_3.4). Package qscintilla needs libstdc++.so.6(GLIBCXX_3.4). Package kdesdk needs libdb-4.2.so. Package kdesdk needs libstdc++.so.6(GLIBCXX_3.4). Package kdesdk needs valgrind = 0:2.0.0. Package gpgme needs gnupg = 0:1.2.2. Package gpgme needs libgpg-error.so.0. Package kdeutils needs libidn.so.11. Package kdeutils needs libstdc++.so.6(GLIBCXX_3.4). Package dirmngr needs libgcrypt.so.11. Package dirmngr needs libgcrypt.so.11(GCRYPT_1.2). Package dirmngr needs libgpg-error.so.0. Package dirmngr needs liblber-2.2.so.7. Package dirmngr needs libldap-2.2.so.7. Package pinentry-qt needs libstdc++.so.6(GLIBCXX_3.4). Package gnupg2 needs libc.so.6(GLIBC_2.3.4). Package gnupg2 needs libgcrypt.so.11. Package gnupg2 needs libgcrypt.so.11(GCRYPT_1.2). Package gnupg2 needs libgpg-error.so.0. Package OpenEXR needs libstdc++.so.6(GLIBCXX_3.4). Package kdepim needs libXss.so.1. Package kdepim needs libbluetooth.so.1. Package kdepim needs libgpg-error.so.0. Package kdepim needs libidn.so.11. Package kdepim needs
[PyKDE] kio.move and kio.copy missing?
Hello there, I cannot find the static methods kio.copy and kio.move in PyKDE 3.11.3. Sad news for my file manager... :) Is there some equivalent method? Thanks a lot, Maurizio Colucci http://onefinger.sf.net ___ PyKDE mailing list[EMAIL PROTECTED] http://mats.imk.fraunhofer.de/mailman/listinfo/pykde
[PyKDE] Small eric bug
Hi, In last eric snapshot, a small bug still when using the utf8 encoding: the middle click doesn't paste special characters corectly. Ctrl+V and DragDrop commands works fine. As middle click is rather used under *nix systems, it would be nice to correct this small and unpleasant bug. Best regards, ++ Jul. ___ PyKDE mailing list[EMAIL PROTECTED] http://mats.imk.fraunhofer.de/mailman/listinfo/pykde
[PyKDE] Calling slots
I have a button that used to be connected to accept() on a dialog. I added some validation, and only want to call accept() now if the validation passes. I tried calling dlg.accept() but I got the message that it is not callable because it was not created in python. What is the work around? Thanks. __ This electronic message may contain proprietary and confidential information of Verint Systems Inc., its affiliates and/or subsidiaries. The information is intended to be for the use of the individual(s) or entity(ies) named above. If you are not the intended recipient (or authorized to receive this e-mail for the intended recipient), you may not use, copy, disclose or distribute to anyone this message or any information contained in this message. If you have received this electronic message in error, please notify us by replying to this e-mail. (1) ___ PyKDE mailing list[EMAIL PROTECTED] http://mats.imk.fraunhofer.de/mailman/listinfo/pykde
[PyKDE] Isuing a aprent qApp
Apparently, out look ate my last email so here it is again. I am using python embedded in an MFC app. The Python interp brings up QDialogs (from UI files, and coded in PyQt) This now works, and beautifully. There are 2 small issues that I need to address 1) The MFC app and the QDialog are sperate task bar entries. 2) The QDialog (even when set to modal in designer) is not modal, that is, the parent MFC app may be z-ordered in front if it. It think these issues will be fixed once I can make a QWinWidget that is the theApp.m_pmainFrame (or whatever it is called in MFC) but then the issue is how do I get the QDialogs parent set to that? The issue I see here is that the parent is outside the interpreter, and the needs to be sent inside. I also see qApp.mainWidget, but the issue remains the same. Once again, any help is appreciated. __ This electronic message may contain proprietary and confidential information of Verint Systems Inc., its affiliates and/or subsidiaries. The information is intended to be for the use of the individual(s) or entity(ies) named above. If you are not the intended recipient (or authorized to receive this e-mail for the intended recipient), you may not use, copy, disclose or distribute to anyone this message or any information contained in this message. If you have received this electronic message in error, please notify us by replying to this e-mail. (1) ___ PyKDE mailing list[EMAIL PROTECTED] http://mats.imk.fraunhofer.de/mailman/listinfo/pykde
[PyKDE] Mandrake packages and repository now available
Hello all, I've put a URPMI repository up at: http://www.simonzone.com/software/mdkrpm/ There are packages for PyQt, PyKDE, Eric, etc etc for Mandrake 10.1. Feedback is welcome. cheers, -- Simon Edwards | Guarddog Firewall [EMAIL PROTECTED] | http://www.simonzone.com/software/ Nijmegen, The Netherlands | ZooTV? You made the right choice. ___ PyKDE mailing list[EMAIL PROTECTED] http://mats.imk.fraunhofer.de/mailman/listinfo/pykde
[PyKDE] kio.move and kio.copy missing?
Hello there, I cannot find the static methods kio.copy and kio.move in PyKDE 3.11.3. Sad news for my file manager... :) Is there some equivalent technique? Thanks a lot, Maurizio Colucci http://onefinger.sf.net ___ PyKDE mailing list[EMAIL PROTECTED] http://mats.imk.fraunhofer.de/mailman/listinfo/pykde
[PyKDE] ANN: new eric3 snapshot
Hi, this is to let you know about a new snapshot release. This one includes a surprise for all people who use the right operating system. Go get it and see, if you find the surprise. As usual it is available via http://www.die-offenbachs.de/detlev/eric3.html in the snapshots section. Regards, Detlev -- Detlev Offenbach [EMAIL PROTECTED] ___ PyKDE mailing list[EMAIL PROTECTED] http://mats.imk.fraunhofer.de/mailman/listinfo/pykde
Re: [PyKDE] ANN: new eric3 snapshot
On November 27, 2004 09:40, Detlev Offenbach wrote: I have just uploaded a new eric3 snapshot. It fixes a few bugs and has these new features. Has the problem reported earlier, where the module browser views will not include functions that have formal parameters which contain parentheses been fixed? E.g. will a definitions such as def search_path(name, dirs, predicate=lambda path: os.access(path, os.R_OK)): pass or even def timestring(dtm, format=%(sign)s%(hour)02d:%(minute)02d:%(second)02d, plussign= , minussign=-, trimback=0): pass appear in the module browser displays? Currently, eric 3.5.0 will not display such definitions, which is quite aggravating, as a few defintions are left out of a module display because of default arguments, and this is not obvious. -- -- Parzival ___ PyKDE mailing list[EMAIL PROTECTED] http://mats.imk.fraunhofer.de/mailman/listinfo/pykde
[PyKDE] KRootPixmap problem
Hi ! I have a problem with KRootPixmap class when I use it and close A top-level dialog: X Error: BadWindow (invalid Window parametr) 3 is printed to the console however it doesn't interrupt the program itself or do any data damage! Here is the code: w=QWidget(None) w.root=KRootPixmap(w) w.show() when the second line is commented it's working fine So I am interested if this is KDE core bug or PyKDE bug I am using: Mandrake 10 Official (Mandrake Linux 10.0 3.3.2-6mdk) KDE 3.2 Branch = 20040204 Python 2.3.3 PyQt 3.13 PyKDE 3.11.3 Thx ___ PyKDE mailing list[EMAIL PROTECTED] http://mats.imk.fraunhofer.de/mailman/listinfo/pykde
[PyKDE] qApp issues
I have python embedded in my app, and I wish to use my applications window as the parent for some dialogs created (and coded) in python land. Is there a way to get the main widget in C++ to be the parent of Python? I need my python dialogs to: 1) Be modal w.r.t my app window, 2) Not show up in the task bar. I think setting the parent to my C++ window will fix these. Also if I can work around it, and disable the task bar entry and make the dialog always-on-top, that should work too, but wont be as elegant. As of right now, the from qt import * line makes a qApp of its own, in addition to my C++ qApp. Thanks! __ This electronic message may contain proprietary and confidential information of Verint Systems Inc., its affiliates and/or subsidiaries. The information is intended to be for the use of the individual(s) or entity(ies) named above. If you are not the intended recipient (or authorized to receive this e-mail for the intended recipient), you may not use, copy, disclose or distribute to anyone this message or any information contained in this message. If you have received this electronic message in error, please notify us by replying to this e-mail. (1) ___ PyKDE mailing list[EMAIL PROTECTED] http://mats.imk.fraunhofer.de/mailman/listinfo/pykde
Re: [PyKDE] SIP issues.
On Tuesday 23 November 2004 8:51 pm, Gerard Vermeulen wrote: Hi, When trying to wrap QwtPlot3D (http://qwtplot3d.sourceforge.net), I encountered several issues with SIP: (1) Problems in getting an (abstract) virtual operator() working. Finally, Virtual (and abstract) operators are now supported in the current SIP v4 snapshot. Also operator() and the __call__ slot no longer require %MethodCode. (2) Why does the PyName annotation only apply to functions? class def { public: double yield; }; can only be wrapped if PyName can also be used for class names and variable names. You can now apply /PyName/ to classes, variables, enums and enum members. (3) Slots like __getitem__, __len__, and __setitem__ of a Python type defined in a SIP file do not show with dir() (dir([]) shows those slots). I couldn't reproduce this. I suspect that it had already been fixed in an earlier snapshot. Phil ___ PyKDE mailing list[EMAIL PROTECTED] http://mats.imk.fraunhofer.de/mailman/listinfo/pykde
[PyKDE] SIP/PyQT -u flag on Windows
It would be really nice if (at least on windows) that the u flag of configure.py produced final targets with _d appended to the name. My troubles on win32 were almost exclusively due to this. When Python is compiled for debugging, it looks as if it tries to load other modules built for debugging, so it actually tries to import qt_d instead of qt. I was only ever able to get it to work when everything was compiled without debug, and I think this was the main issue. This would also make it much easier for me to switch between the release and debug versions. __ This electronic message may contain proprietary and confidential information of Verint Systems Inc., its affiliates and/or subsidiaries. The information is intended to be for the use of the individual(s) or entity(ies) named above. If you are not the intended recipient (or authorized to receive this e-mail for the intended recipient), you may not use, copy, disclose or distribute to anyone this message or any information contained in this message. If you have received this electronic message in error, please notify us by replying to this e-mail. (1) ___ PyKDE mailing list[EMAIL PROTECTED] http://mats.imk.fraunhofer.de/mailman/listinfo/pykde
[PyKDE] kdebindings, pyqt, and qtext.so
It seems to me that kdebindings now contains wonderful pyqt except qtext.so. This is needed to run eric IDE. Why kdebindings does not include qtext.so? Is there any other way to get qtext.so without installing pyqt. If I have to installed pyqt, do I need to install sip or it can use one from kdebindings and will there be any conflict between kdebindings and pyqt? ___ PyKDE mailing list[EMAIL PROTECTED] http://mats.imk.fraunhofer.de/mailman/listinfo/pykde
[PyKDE] PyQt - QApplication with the GUIenabled flag question
Hi, I am looking for some advice re a program that I am working on. I am attempting to write a small network server app to do some very simple data replication between two postgresql databases using Twisted and Qt. The reason that I am using Qt is that I have some classes from a companion application using QTimer's and QSqlQuery's that I would like to re-use. The plan was to have the program running on a network server that does not have an X server running but ... The snag: When my program starts it tries to connect to a running X server, then crashes when it can't. A short trip to google pointed me to a GUIenabled flag as one of the options for the QApplication constructor. This is supposed to enable console application development. Unfortunately, the PyQt docs say that the QApplication constructor with the GUIenabled flag is not implemented. My Questions: I have looked on the web but can't find any information to say that this is a bad idea. Therefore, given that PyQt seems to support pretty much every part of Qt, is using Qt this way a really bad thing to do? If not, then is this just something that has not been implemented because nobody has asked or is it really hard to implement (and won't happen any time soon)? Should I look at re-writing the classes using the standard python DB-API instead? Thanks in advance for any guidance, Brad ___ PyKDE mailing list[EMAIL PROTECTED] http://mats.imk.fraunhofer.de/mailman/listinfo/pykde
Re: [PyKDE] PyQt Metaclass programming
Hi, Would it help if sip.wrappertype was placed in the sip module dictionary so that you could sub-class it? I ran into the same troubles and asked Gary for his solution. He offered me this neat trick for declaring my metaclass: class SessionAware(type(QObject)): ... I neverless think that sip.wrappertype should be exposed, as that would be a more natural approach to the problem - and more easy to document. Regards, Diez B. Roggisch ___ PyKDE mailing list[EMAIL PROTECTED] http://mats.imk.fraunhofer.de/mailman/listinfo/pykde
Re: [PyKDE] SIP issues.
On Sun, 5 Dec 2004 09:50:28 + Phil Thompson [EMAIL PROTECTED] wrote: On Tuesday 23 November 2004 8:51 pm, Gerard Vermeulen wrote: Hi, When trying to wrap QwtPlot3D (http://qwtplot3d.sourceforge.net), I encountered several issues with SIP: (1) Problems in getting an (abstract) virtual operator() working. Finally, Virtual (and abstract) operators are now supported in the current SIP v4 snapshot. Also operator() and the __call__ slot no longer require %MethodCode. (2) Why does the PyName annotation only apply to functions? class def { public: double yield; }; can only be wrapped if PyName can also be used for class names and variable names. You can now apply /PyName/ to classes, variables, enums and enum members. (3) Slots like __getitem__, __len__, and __setitem__ of a Python type defined in a SIP file do not show with dir() (dir([]) shows those slots). I couldn't reproduce this. I suspect that it had already been fixed in an earlier snapshot. Thanks, I had seen some of those items already in your changelog. I am in the business of trying my bindings for QwtPlot3D with your sip-snapshots (I tried the 3 december sip) and noticed that enum fields are not accessible. For instance the following snippet from a *.sip file: enum AXIS { X1, X2, X3, X4, Y1, Y2, Y3, Y4, Z1, Z2, Z3, Z4, }; // enum AXIS where AXIS is in module scope does not give access to X1, X2, etc. (there is an AXIS entry in dir(module), but module.AXIS.X1 does not work). Gerard ___ PyKDE mailing list[EMAIL PROTECTED] http://mats.imk.fraunhofer.de/mailman/listinfo/pykde
Re: [PyKDE] KDE repository rpm's
Ken, This YUM repository is for RHEL3 and contains everything (including kitchen sink) ... There seems to be one thing missing -- the GPG Keys. When I try to install anything, I get: Could not find the GPG Key necessary to validate pkg ... I have looked, but I have not found them. They are usually in the os directory; for example, see: ftp://download.stmc.edu.hk/fedora/linux/core/3/i386/os/ I tried the fedora bestoff GPG key , here http://people.best-off.org/~rhel-devel/centos-3/ Any suggestions would be appreciated. Thanks, Rick --- Ken Godee [EMAIL PROTECTED] wrote: Rick Graves wrote: Hello, I am trying to install eric3 on a CentOS-3 system. CentOS-3 is like RedHat's RHEL 3. I cannot install it because the PyQt install fails. I did a fresh CentOS-3 developement install to start. Or If you want to give it a try(and are bold with good download speed) add this listing to your YUM conf file and do a check-update http://apt.kde-redhat.org/kde-redhat/kde-redhat/3.0/yum/RPMS.stable/ This YUM repository is for RHEL3 and contains everything (including kitchen sink) kdebase3.3, qt3.3, etc... sip, PyQt, PyKDE, PyQt-qscintilla, eric, etc. I'm running CentOS-3.3 too and just eye balled this YUM repository the other day. Doing this would throw off your yum updates from CentOS but you would have everything you want. Hey, let me know how it goes. Ken ___ PyKDE mailing list[EMAIL PROTECTED] http://mats.imk.fraunhofer.de/mailman/listinfo/pykde
[PyKDE] list problem
there was a problem with the mailing list during the last days (I think since 11/30/04); the Mailman qrunner daemon died. I hope no mails have been lost. Best regards, -Thorsten ___ PyKDE mailing list[EMAIL PROTECTED] http://mats.imk.fraunhofer.de/mailman/listinfo/pykde
Re: [PyKDE] Calling slots
I have a button that used to be connected to accept() on a dialog. I added some validation, and only want to call accept() now if the validation passes. I tried calling dlg.accept() but I got the message that it is not callable because it was not created in python. What is the work around? QDialog::accept() is protected so it has to be exposed as public by a sub-class. This is handled automatically by SIP for QDialogs created from Python. Otherwise you will have to do it yourself in C++. Phil ___ PyKDE mailing list[EMAIL PROTECTED] http://mats.imk.fraunhofer.de/mailman/listinfo/pykde
Re: [PyKDE] qApp issues
I have python embedded in my app, and I wish to use my application's window as the parent for some dialogs created (and coded) in python land. Is there a way to get the main widget in C++ to be the parent of Python? I need my python dialogs to: 1) Be modal w.r.t my app window, 2) Not show up in the task bar. I think setting the parent to my C++ window will fix these. Also if I can work around it, and disable the task bar entry and make the dialog always-on-top, that should work too, but won't be as elegant. As of right now, the from qt import * line makes a qApp of its own, in addition to my C++ qApp. Why do you say that? The import creates a Python object that wraps the C++ qApp pointer. It doesn't create anything at the C++ level. Phil ___ PyKDE mailing list[EMAIL PROTECTED] http://mats.imk.fraunhofer.de/mailman/listinfo/pykde
Re: [PyKDE] embedding doc strings in sip-generated code?
Is there a way to include some __doc__ code in a sip-generated python module? I've written some new widgets and it would be great for my users if they could access usage information via pydoc. Is that possible with sip? Not at the moment. It's on the TODO list. Phil ___ PyKDE mailing list[EMAIL PROTECTED] http://mats.imk.fraunhofer.de/mailman/listinfo/pykde
Re: [PyKDE] SIP/PyQT -u flag on Windows
It would be really nice if (at least on windows) that the -u flag of configure.py produced final targets with '_d' appended to the name. My troubles on win32 were almost exclusively due to this. When Python is compiled for debugging, it looks as if it tries to load other modules built for debugging, so it actually tries to import qt_d instead of qt. I was only ever able to get it to work when everything was compiled without debug, and I think this was the main issue. This would also make it much easier for me to switch between the release and debug versions. Agreed - it will be sorted out fro SIP v4.2. Phil ___ PyKDE mailing list[EMAIL PROTECTED] http://mats.imk.fraunhofer.de/mailman/listinfo/pykde
Re: [PyKDE] Isuing a aprent qApp
Apparently, out look ate my last email so here it is again. I am using python embedded in an MFC app. The Python interp brings up QDialogs (from UI files, and coded in PyQt) This now works, and beautifully. There are 2 small issues that I need to address 1) The MFC app and the QDialog are sperate task bar entries. 2) The QDialog (even when set to modal in designer) is not modal, that is, the parent MFC app may be z-ordered in front if it. It think these issues will be fixed once I can make a QWinWidget that is the theApp.m_pmainFrame (or whatever it is called in MFC) but then the issue is how do I get the QDialog's parent set to that? The issue I see here is that the parent is outside the interpreter, and the needs to be sent inside. I also see qApp.mainWidget, but the issue remains the same. I can only suggest using QWidget::reparent() (?) from C++ before you show the PyQt dialog. Phil ___ PyKDE mailing list[EMAIL PROTECTED] http://mats.imk.fraunhofer.de/mailman/listinfo/pykde
Re: [PyKDE] PyQt Metaclass programming
Hi, Would it help if sip.wrappertype was placed in the sip module dictionary so that you could sub-class it? I ran into the same troubles and asked Gary for his solution. He offered me this neat trick for declaring my metaclass: class SessionAware(type(QObject)): ... I neverless think that sip.wrappertype should be exposed, as that would be a more natural approach to the problem - and more easy to document. It's in the current snapshot. Phil ___ PyKDE mailing list[EMAIL PROTECTED] http://mats.imk.fraunhofer.de/mailman/listinfo/pykde
Re: [PyKDE] PyQt - QApplication with the GUIenabled flag question
Hi, I am looking for some advice re a program that I am working on. I am attempting to write a small network server app to do some very simple data replication between two postgresql databases using Twisted and Qt. The reason that I am using Qt is that I have some classes from a companion application using QTimer's and QSqlQuery's that I would like to re-use. The plan was to have the program running on a network server that does not have an X server running but ... The snag: When my program starts it tries to connect to a running X server, then crashes when it can't. A short trip to google pointed me to a GUIenabled flag as one of the options for the QApplication constructor. This is supposed to enable console application development. Unfortunately, the PyQt docs say that the QApplication constructor with the GUIenabled flag is not implemented. My Questions: I have looked on the web but can't find any information to say that this is a bad idea. Therefore, given that PyQt seems to support pretty much every part of Qt, is using Qt this way a really bad thing to do? If not, then is this just something that has not been implemented because nobody has asked or is it really hard to implement (and won't happen any time soon)? Should I look at re-writing the classes using the standard python DB-API instead? Is there any problem with using the QApplication::Tty value to the 3rd ctor? If there is a problem I can implement the GUIenabled flag - though it will require SIP v4.2. Phil ___ PyKDE mailing list[EMAIL PROTECTED] http://mats.imk.fraunhofer.de/mailman/listinfo/pykde
Re: [PyKDE] kdebindings, pyqt, and qtext.so
On Tuesday 30 November 2004 03:14, Samir Patel wrote: It seems to me that kdebindings now contains wonderful pyqt except qtext.so. This is needed to run eric IDE. Why kdebindings does not include qtext.so? Is there any other way to get qtext.so without installing pyqt. If I have to installed pyqt, do I need to install sip or it can use one from kdebindings and will there be any conflict between kdebindings and pyqt? What need to do is install qscintilla and any header files and development stuff for qscintilla, and then build kdebindings. The PyQt part of the build will detect qscintilla and automatically build qtext for you. I kind of screwed up by not making this clear in the docs for kdebindings. sorry. -- Simon Edwards | Guarddog Firewall [EMAIL PROTECTED] | http://www.simonzone.com/software/ Nijmegen, The Netherlands | ZooTV? You made the right choice. ___ PyKDE mailing list[EMAIL PROTECTED] http://mats.imk.fraunhofer.de/mailman/listinfo/pykde
[PyKDE] KDE yum repositories
From: Rick Graves [EMAIL PROTECTED] Ken, I have good news and bad news. The good news is I figured out a solution to the GPG key problem -- in yum.conf, for the RedHat KDE repositories, turn off GPG key checking. Or download/import the key from http://sf.net/projects/kde-redhat in the Files section. The bad new is this is not working. It does work, you're just looking at the the wrong repo/folder (see below) I found a list of KDE RedHat repositories here: http://apt.kde-redhat.org/kde-redhat/kde-redhat/3/mirrors.list That's for FC3. RHEL3 folders are tagged 3.0, and for complete instructions, goto: http://kde-redhat.sf.net/ replacing RHREL with 3.0 Wouldn't hurt to send questions/issues to our mailing list as well: [EMAIL PROTECTED] (Please subscribe before posting). -- Rex ___ PyKDE mailing list[EMAIL PROTECTED] http://mats.imk.fraunhofer.de/mailman/listinfo/pykde
Re: [PyKDE] Small eric bug
Am Montag, 29. November 2004 20:28 schrieb jul: Hi, In last eric snapshot, a small bug still when using the utf8 encoding: the middle click doesn't paste special characters corectly. Ctrl+V and DragDrop commands works fine. As middle click is rather used under *nix systems, it would be nice to correct this small and unpleasant bug. Best regards, ++ Jul. Due to the fact that I don't do anything special (or rather anything at all) with the middle button click, I consider this a bug in QScintilla (or maybe even Scintilla). Maybe Phil can have a look. Detlev -- Detlev Offenbach [EMAIL PROTECTED] ___ PyKDE mailing list[EMAIL PROTECTED] http://mats.imk.fraunhofer.de/mailman/listinfo/pykde
Re: [PyKDE] two questions about eric
Am Montag, 6. Dezember 2004 19:01 schrieb Rick Graves: Hello, I have successfully installed eric, and it seems to be working. There is a lot in there. What is the best way to learn how to use all the features? Unfortunately there is no user documentation or tutorial available. Nobody has volunteered to do it. To learn all the features you should just try to find them in the menus and play with it. When using the code editor, can you make it full screen? Not completely. However, if you select Floating Windows as your window layout (Preferences, Interface page, Layout) you can maximize it and only the menu and toolbars take away some space. Thanks, Rick Graves ___ PyKDE mailing list[EMAIL PROTECTED] http://mats.imk.fraunhofer.de/mailman/listinfo/pykde Detlev -- Detlev Offenbach [EMAIL PROTECTED] ___ PyKDE mailing list[EMAIL PROTECTED] http://mats.imk.fraunhofer.de/mailman/listinfo/pykde
Re: [PyKDE] ANN: new eric3 snapshot
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi Detlev, Runnig the new snapshot on Mac OS X I get the following: ~ File /Users/kevin/Desktop/eric-snapshot-20041205/eric/eric3.py, line 123, in ? ~main() ~ File /Users/kevin/Desktop/eric-snapshot-20041205/eric/eric3.py, line 106, in main ~from UI.UserInterface import UserInterface ~ File /Users/kevin/Desktop/eric-snapshot-20041205/eric/UI/UserInterface.py, line 27, in ? ~from EmailDialog import EmailDialog ~ File /Users/kevin/Desktop/eric-snapshot-20041205/eric/UI/EmailDialog.py, line 34, in ? ~from Refactoring.Refactoring import Refactoring, BRM_VERSION_STR ~ File /Users/kevin/Desktop/eric-snapshot-20041205/eric/Refactoring/Refactoring.py, line 17, in ? ~import ThirdParty.brm.bike as bike ~ File /Users/kevin/Desktop/eric-snapshot-20041205/eric/ThirdParty/brm/bike/__init__.py, line 10, in ? ~from bikefacade import init, NotAPythonModuleOrPackageException, CouldntLocateASTNodeFromCoordinatesException, UndoStackEmptyException ~ File /Users/kevin/Desktop/eric-snapshot-20041205/eric/ThirdParty/brm/bike/bikefacade.py, line 5, in ? ~from bike.parsing.pathutils import getRootDirectory ImportError: No module named bike.parsing.pathutils I'm working with the current version of sip/pyqt/qscintilla, but not the latest snapshot. Perhaps that's the problem? I wish I could get Eric 3.5x working on the Mac. I've tried rebuilding everything and still get a lot of crashes when saving files (though nothing like above). Others have reported successfully using Erci 3.5, but I can't seem to get it working. :-( Any other Mac users on the list have any insights? Kevin Detlev Offenbach wrote: | Hi, | | this is to let you know about a new snapshot release. This one includes a | surprise for all people who use the right operating system. Go get it and | see, if you find the surprise. | | As usual it is available via http://www.die-offenbachs.de/detlev/eric3.html in | the snapshots section. | | Regards, | Detlev -BEGIN PGP SIGNATURE- Version: GnuPG v1.2.4 (Darwin) Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org iD8DBQFBtK8WJmdQs+6YVcoRAjlXAKCJ+cQSV2PdKtHl/J0bs93C//xmzwCeKXUZ Hhj/2JYGqc6EOUJ92fyPPKo= =ZXXi -END PGP SIGNATURE- ___ PyKDE mailing list[EMAIL PROTECTED] http://mats.imk.fraunhofer.de/mailman/listinfo/pykde
Re: [PyKDE] kio.move and kio.copy missing?
On Thursday 02 December 2004 14:10, Maurizio Colucci wrote: Hello there, I cannot find the static methods kio.copy and kio.move in PyKDE 3.11.3. Sad news for my file manager... :) Is there some equivalent technique? I can't find them either - do you know where in kio they exist? I'd consider two alternatives: if you don't need progress info, Python provides all the necessary machinery for doing copies and moves already, either through shutil or just os.system and similar mechanisms. Otherwise, the KIO::Job hierarchy (esp KIO::FileCopyJob) is available. I haven't ever done anything with it so I don't have example code, but it should be fully implemented. Jim ___ PyKDE mailing list[EMAIL PROTECTED] http://mats.imk.fraunhofer.de/mailman/listinfo/pykde
Re: [PyKDE] kio.move and kio.copy missing?
Jim Bublitz wrote: On Thursday 02 December 2004 14:10, Maurizio Colucci wrote: Hello there, I cannot find the static methods kio.copy and kio.move in PyKDE 3.11.3. Sad news for my file manager... :) Is there some equivalent technique? I can't find them either - do you know where in kio they exist? I'd consider two alternatives: if you don't need progress info, Python provides all the necessary machinery for doing copies and moves already, either through shutil or just os.system and similar mechanisms. Otherwise, the KIO::Job hierarchy (esp KIO::FileCopyJob) is available. I haven't ever done anything with it so I don't have example code, but it should be fully implemented. Jim Sorry, I found the functions I needed! They were in kio.KIO !!! That was not very discoverable, but it works, so... :-) Cheers! Mau ___ PyKDE mailing list[EMAIL PROTECTED] http://mats.imk.fraunhofer.de/mailman/listinfo/pykde
Re: [PyKDE] PyQt - QApplication with the GUIenabled flag question
Hi Phil, Greetings from down under. Your suggestion worked perfectly. (me sits here stupefied - I spent half a day looking for the answer on google/qt mail list archives - don't know how I missed it in the doc's) Thanks for the assistance. Brad On Tue, 7 Dec 2004 02:40 am, Phil Thompson wrote: Hi, I am looking for some advice re a program that I am working on. ... Is there any problem with using the QApplication::Tty value to the 3rd ctor? If there is a problem I can implement the GUIenabled flag - though it will require SIP v4.2. Phil ___ PyKDE mailing list[EMAIL PROTECTED] http://mats.imk.fraunhofer.de/mailman/listinfo/pykde ___ PyKDE mailing list[EMAIL PROTECTED] http://mats.imk.fraunhofer.de/mailman/listinfo/pykde