Re: [PyKDE] bug in QDateEdit

2006-12-31 Thread Sebastian Kügler
On Saturday 30 December 2006 22:36, florian pons wrote: > QDateEdit Widget with the DisplayFormat " dd/MM". > Then put the date 'dimanche 31/12'. > then scroll the month to 11. > The text '30 30/30' eppear istead of the date. > > platform: linux, pyqt 4.0.1 (kubuntu edgy) > wind

Re: [PyKDE] PyQt4: Promoting a custom widget in qt4 designer

2006-12-04 Thread Sebastian Kügler
On Monday 04 December 2006 13:53, Andreas Pakulat wrote: > On 06.12.06 13:37:39, Sebastian Kügler wrote: > > On Monday 04 December 2006 11:23, Andreas Pakulat wrote: > > > On 04.12.06 03:38:47, Eriol wrote: > > > > I'm trying to use custom widget promotion i

Re: [PyKDE] PyQt4: Promoting a custom widget in qt4 designer

2006-12-04 Thread Sebastian Kügler
On Monday 04 December 2006 11:23, Andreas Pakulat wrote: > On 04.12.06 03:38:47, Eriol wrote: > > I'm trying to use custom widget promotion in qt4 designer. I attach an > > example of what I'm doing: what's wrong with it? > > I have searched for documentation about this, but I didn't find anything

Re: [PyKDE] Plans for PyKDE in KDE 4

2006-11-17 Thread Sebastian Kügler
Hi Simon, Thanks for putting this together, it looks really well done and comprehensively. Some minor remarks inline, however. On Thursday 09 November 2006 21:36, Simon Edwards wrote: > Hello all, > > I've been talking to Jim Bublitz about plans for PyKDE in the up coming KDE > 4. We, and I hope

Re: [PyKDE] idle time detection

2006-11-11 Thread Sebastian Kügler
On Thursday 09 November 2006 19:51, Sebastian Kügler wrote: > Can anyone think of some clean way for a PyKDE application to detect idle > time? > > For the Kubuntu powermanager applet, we're currently missing that feature. > The usecase would be kicking in a suspend / hiberna

Re: [PyKDE] idle time detection

2006-11-09 Thread Sebastian Kügler
On Thursday 09 November 2006 20:48, Andreas Pakulat wrote: > On 09.11.06 19:51:11, Sebastian Kügler wrote: > > Can anyone think of some clean way for a PyKDE application to detect idle > > time? > > > > For the Kubuntu powermanager applet, we're currently missi

[PyKDE] idle time detection

2006-11-09 Thread Sebastian Kügler
Can anyone think of some clean way for a PyKDE application to detect idle time? For the Kubuntu powermanager applet, we're currently missing that feature. The usecase would be kicking in a suspend / hibernate / dimming display after N seconds of no mouse or keyboard activity. Thanks for you

Re: [PyKDE] ANN: PyQt 4.1, PyQt 3.17, QScintilla 1.7, SIP 4.5 Released

2006-11-07 Thread Sebastian Kügler
On Wednesday 08 November 2006 01:45, Andreas Pakulat wrote: > On 08.11.06 01:05:47, Sebastian Kügler wrote: > > On Sunday 05 November 2006 12:25, Phil Thompson wrote: > > > PyQt v4.1 has been released. The main feature is support for Qt v4.2. > > > > Is there a

Re: [PyKDE] ANN: PyQt 4.1, PyQt 3.17, QScintilla 1.7, SIP 4.5 Released

2006-11-07 Thread Sebastian Kügler
On Sunday 05 November 2006 12:25, Phil Thompson wrote: > PyQt v4.1 has been released. The main feature is support for Qt v4.2. Is there a good reason to *not* keep the version numbers in sync? -- sebas http://www.kde.org | http://vizZzion.org | GPG Key ID: 9119 0EF9 - - - - - - - - - - - - -

Re: [PyKDE] Cannot use KUniqueApplication with dcop

2006-09-20 Thread Sebastian Kügler
On Thursday 21 September 2006 01:50, JIm Bublitz wrote: > On Wednesday 23 August 2006 14:58, Sebastian Kügler wrote: > > I'm trying to make a KUniqueApplication accessible via dcop, but I'm > > getting the following error: > > > > dcop-testapp: ERROR: Commun

Re: [PyKDE] .. a bit of progress ...

2006-09-16 Thread Sebastian Kügler
Hi Dave, On Saturday 16 September 2006 11:22, Dave S wrote: > A bit of progress but still stuck ... > > backgnd_png = self.config.get('files','background') > print backgnd_png > image = QImage.load(backgnd_png) Try image=QImage() image.load(backgnd_png)

Re: KDE 4 (was: [PyKDE] PyQt 4 on openSUSE)

2006-09-14 Thread Sebastian Kügler
On Saturday 09 September 2006 00:08, David Boddie wrote: > If you have access to the pages on developer.kde.org, or can get an account > for that, it would be good to at least have links to other resources on > there. FWIW, a 'normal' KDE SVN account allows you to edit d.k.o. -- sebas http://ww

Re: KDE 4 (was: [PyKDE] PyQt 4 on openSUSE)

2006-09-09 Thread Sebastian Kügler
On Saturday 09 September 2006 20:22, Jim Bublitz wrote: > Aren't you glad you asked? Tremendously ;-) I'll need some time to digest, though. And I'm travelling the next days. Thanks for the detailing the matter! -- sebas http://www.kde.org | http://vizZzion.org | GPG Key ID: 9119 0EF9 - - -

Re: KDE 4 (was: [PyKDE] PyQt 4 on openSUSE)

2006-09-09 Thread Sebastian Kügler
On Friday 08 September 2006 21:44, Jim Bublitz wrote: > The other problem is having an environment to compile and test the code - > that turns out to be a big time consumer for me, especially if I'd have to > compile KDE. Which is why I wait for rpms before upgrading PyKDE. On the > other hand, PyK

Re: KDE 4 (was: [PyKDE] PyQt 4 on openSUSE)

2006-09-08 Thread Sebastian Kügler
On Friday 08 September 2006 01:51, David Boddie wrote: > Although KDE 4 looks like it's starting to take shape, I can't believe that > there's not going to be a lot of flux in the APIs before they stabilize > into a form that provides the features that have been promoted in various > places. I don'

Re: [PyKDE] PyQt 4 on openSUSE

2006-09-06 Thread Sebastian Kügler
On Tuesday 05 September 2006 23:20, Jim Bublitz wrote: > There's going to be a delay for PyKDE4, since KDE4 is still some time off > in the future (end of the year, as I recall). I don't really know what the KDE4 will probably not be released this year. kdelibs and kdebase will probably stabilise

Re: [PyKDE] Cannot use KUniqueApplication with dcop

2006-08-24 Thread Sebastian Kügler
On Thursday 24 August 2006 01:53, Danny Pansters wrote: > On Wednesday 23 August 2006 23:58, Sebastian Kügler wrote: > > I'm trying to make a KUniqueApplication accessible via dcop, but I'm > > getting the following error: > > > > dcop-testapp: ERROR: Commun

[PyKDE] Cannot use KUniqueApplication with dcop

2006-08-23 Thread Sebastian Kügler
I'm trying to make a KUniqueApplication accessible via dcop, but I'm getting the following error: dcop-testapp: ERROR: Communication problem with dcop-testapp, it probably crashed. If I change KUniqueApplication to KApplication, it works just fine. Does anyone know what's going on here? How ca

[PyKDE] [PATCH] Fix void dcop calls

2006-08-23 Thread Sebastian Kügler
Attached patch makes calls such as self.addMethod ('void foo ()', app.foo) work. Without it, the call fails, since dcop_add does not accept None as second argument. dcop-testapp.py is a minimal testcase: ---SNIP--- Traceback (most recent call last): File "/usr/lib/python2.4/site-packages/dco

Re: [PyKDE] eric3: Line wrapping

2006-05-24 Thread Sebastian Kügler
On Thursday 11 May 2006 01:54, Danny Adair wrote: > In > /usr/lib/python2.4/site-packages/eric3/QScintilla/Editor.py > Line 2152 in setTextDisplay(): > > self.setWrapMode(QextScintilla.SC_WRAP_WORD) > > If I change that to > > self.setWrapMode(QextScintilla.SC_WRAP_NONE) > > it seems to work for me

Re: [PyKDE] unicode two-way conversion

2005-10-25 Thread Sebastian Kügler
On Tuesday 25 October 2005 23:27, Sundance wrote: > You most probably want to read this: > http://www.joelonsoftware.com/articles/Unicode.html Thanks, it's a good read and filled me in on some wholes. Cheers, -- sebas http://www.kde.nl | http://vizZzion.org | GPG Key ID: 9119 0EF9 - - - - -

Re: [PyKDE] unicode two-way conversion

2005-10-25 Thread Sebastian Kügler
On Tuesday 25 October 2005 14:39, Diez B. Roggisch wrote: > > Ah, that helps the problem in my test script. Now I'm encountering a > > problem encoding the input of a QLineedit: > > > > File "john.py", line 154, in dataFromGuiToUser > > self.user.data["achternaam"] = > > self.GAchternaam.text

Re: [PyKDE] unicode two-way conversion

2005-10-25 Thread Sebastian Kügler
On Tuesday 25 October 2005 12:28, Mateusz Korniak wrote: > > When I read the data from the widget, I'm not able to insert strings into > > the database using unicode. I can replace the offending characters with > > 'string'.encode('ascii', 'xmlcharrefreplace'). > > Encode to (and back from) utf-8.

[PyKDE] unicode two-way conversion

2005-10-25 Thread Sebastian Kügler
Hi, (I'm posting to this list since I think it's likely that someone here ran across the same problem.) I'm working on a database frontend for a postgresql database, and I'm having an issue with unicode characters that I've put into the Qt UI. When I read the data from the widget, I'm not able

[PyKDE] Eric3: autocompletion from document *and* API file

2005-10-01 Thread Sebastian Kügler
Hi, I can choose between document as source of the autocompletion in eric3, and API files. The first makes it easy to type my own variable names, the second helps with the Qt API. I'd like to have both in the autocompletion options, though. Is that possible? If not, is there a good reason not

Re: [PyKDE] QListView has not childCount nor LastItem

2005-08-30 Thread Sebastian Kügler
> > On 30/08/05, Sebastian Kügler <[EMAIL PROTECTED]> wrote: > > > if self.listview.childCount() == 0: # AttributeError > > > self.deletebutton.setEnabled(False) > > > > > > The childCount is - although documented [0] - not a method of the

[PyKDE] QListView has not childCount nor LastItem

2005-08-30 Thread Sebastian Kügler
Hi, I'm working on some examples for PyQt at the moment, and using the QListView, I found some "strange" things which look like bugs to me. if self.listview.childCount() == 0: # AttributeError self.deletebutton.setEnabled(False) The childCount is - although documented [0] - not a method

Re: [PyKDE] sip configure problem

2005-07-28 Thread Sebastian Kügler
On Thursday 28 July 2005 12:06, Alistair Culf wrote: > Hi, I'm trying to install sip 4.2.1 and pyQt 3.14.1on my mac running OSX > 10.3.9 I've installed Qt sucessfully and have run the demos. However, > when I try to configure sip I get the following error > > Error: /usr/local/Trolltech/Qt-4.0.0/

Re: [PyKDE] Qt4 and uic - dynamic generation

2005-07-21 Thread Sebastian Kügler
Hi, On Thursday 21 July 2005 12:25, Jeremy Sanders wrote: > Would it be possible for PyQt to have the ability to dynamically interpret > Qt designer files, and construct dialogs classes from these at runtime? > This would be much nicer than having to generate Python source code. This > would be li

Re: [PyKDE] [PATCH] Fix compilation of PyKDE snapshot20050628

2005-06-29 Thread Sebastian Kügler
On Wednesday 29 June 2005 22:13, Jim Bublitz wrote: > On Wednesday 29 June 2005 12:18, Sebastian Kügler wrote: > There are some compiler/distribution related bugs I haven't fixed yet > - QList is one and gcc4 stuff is another. I'll get to these as soon > as possible.

[PyKDE] [PATCH] Fix compilation of PyKDE snapshot20050628

2005-06-29 Thread Sebastian Kügler
Hi Jim, On Tuesday 28 June 2005 23:25, Jim Bublitz wrote: > The latest sip snapshot this was tested against was the 06/05 > snapshot. I haven't done a lot of testing with this, so please test > and report any problems. This snapshot still requires gcc3.3. I got a couple of the following errors co

Re: [PyKDE] ANN: PyKDE Extensions 0.3.0 released

2005-06-28 Thread Sebastian Kügler
Hi Simon, On Thursday 23 June 2005 19:25, Simon Edwards wrote: > Version 0.3.0 is now available for public testing. > > * Wednesday June 21st 2005 Simon Edwards <[EMAIL PROTECTED]> > - 0.3 release. Development version. > - 64bit awareness when building libraries added. > - Files for installation i

Re: [PyKDE] dcop call always returns same value - UPDATE

2005-06-28 Thread Sebastian Kügler
On Tuesday 28 June 2005 22:31, Jim Bublitz wrote: > On Monday 27 June 2005 06:07, Sebastian Kügler wrote: > > # Following _always_ returns True :( > > is_enabled = kdesktop.KScreensaverIface.isEnabled()[0] > > > > Any ideas what's going wrong here? > > The cal

Re: [PyKDE] overloading events with qt designer and pyqt

2005-06-28 Thread Sebastian Kügler
On Tuesday 28 June 2005 23:13, Andreas Pakulat wrote: > On 28.Jun 2005 - 21:55:30, Sebastian Kügler wrote: > > That would involve adding custom widgets to qt-designer, I'm not > > sure if this is supported (yet?). > > You mean in the context of pyqt? Because qt-designer

Re: [PyKDE] overloading events with qt designer and pyqt

2005-06-28 Thread Sebastian Kügler
On Tuesday 28 June 2005 20:50, Frank Stüss wrote: > > I'm not sure if that's really what you want, but if you'd like to > > use qt-designer and hand-coded additions at the same time, you can > > create your UI / widgets using qt-designer and then subclassing > > that UI in another file and overload

Re: [PyKDE] overloading events with qt designer and pyqt

2005-06-28 Thread Sebastian Kügler
On Tuesday 28 June 2005 20:12, Frank Stüss wrote: > being new to pyqt and qt designer, i don't know how to overload eg. > the paintEvent of a QFrame. While being no problem doing it 'by hand' > is there a possibility to enter the glue code within qt designer? I'm not sure if that's really what you

Re: [PyKDE] lineedit on focus

2005-06-28 Thread Sebastian Kügler
> On Tue, 2005-06-28 at 14:21 +0200, Giovanni Bajo wrote: > > Danu Kusmana <[EMAIL PROTECTED]> wrote: > > > Im m trying to find something todo with QLineEdit object when the > > > object recived focus by clicking on it. There aren't any signal > > > like "on focus" for QLineEdit or is there? > > >

[PyKDE] dcop call always returns same value

2005-06-27 Thread Sebastian Kügler
Hi, While trying to interface the Kdesktop ScreensaverIface, I noticed an odd behaviour. If called via bash or kdcop, $ dcop kdesktop KScreensaverIface isEnabled would return the correct value, i.e. true or false whether I have checked "[ ] Start automatically" in kcmshell screensaver. Interf

Re: [PyKDE] ANN: PyKDE Extensions 0.2.0 released

2005-06-12 Thread Sebastian Kügler
Hi Simon, On Thursday 09 June 2005 21:50, Simon Edwards wrote: > Version 0.2.0 is now available for public testing. This release > includes a bunch of bug fixes and support for creating KControl > modules in Python, as well as an extended support for installing KDE > programs in Python, and on-the

Re: [PyKDE] Can I use QString as key in Python dictionary?

2005-06-01 Thread Sebastian Kügler
On Thursday 02 June 2005 04:10, Matej Cepl wrote: > I have this simple dialog in PyQt, but whenever I press any item in > the list (or click OK), I get this error: > > chelcicky:pycatsel$ ./pycatsel > Traceback (most recent call last): > File > "/home/matej/archiv/programk

Re: [PyKDE] Isn't QCvanvas available?

2005-05-27 Thread Sebastian Kügler
On Friday 27 May 2005 15:17, Sebastian Kügler wrote: > Is integration of it planned or am I simply doing something wrong? (QCanvas > is not available through the qt py module, nor can I import it.) importing qtcanvas (rather than qcanvas) definitely helps ... Thanks for ignoring my ign

[PyKDE] Isn't QCvanvas available?

2005-05-27 Thread Sebastian Kügler
Hi, I just stumbled across the an article about creating games with Qt [1] and thought about playing around with it in Python. However, it seems that QCanvas [2],[3] isn't available in pyqt :-( Is integration of it planned or am I simply doing something wrong? (QCanvas is not available through

[PyKDE] [PATCH] PyKDE: switch qlist.h to qptrlist.h

2005-05-24 Thread Sebastian Kügler
Hi, I needed attached patch to compile the latest PyKDE snapshot on my Kubuntu system. It basically converts all qlist.h's to qptrlist.h since a qlist.h compatibility header is not provided in the packages I'm using. PyKDE does now work fine here. (Python 2.4, python-qt-dev 3.14.1, Qt 3.3.4, K

Re: [PyKDE] ANN: eric3 3.7.0-rc1 released

2005-05-24 Thread Sebastian Kügler
On Tuesday 24 May 2005 15:26, Brad Ralph wrote: > I haven't looked at creating tasks manually. I do it by adding > either #FIXME of #TODO lines in the actual files. If you do this, > eric helpfully adds them as tasks in the task list and when you > double click on them if opens the file and moves

Re: [PyKDE] ANN: PyKDE Extensions 0.1.0

2005-05-16 Thread Sebastian Kügler
On Sunday 15 May 2005 20:35, Simon Edwards wrote: > Hello all, > > """PyKDE Extensions is a collection of software and Python packages to > support the creation and installation of KDE applications.""" > > http://www.simonzone.com/software/pykdeextensions/ > > First release is now available for tes

[PyKDE] Re: dcop problem querying wallpaper

2005-05-05 Thread Sebastian Kügler
On Friday 06 May 2005 06:06, you wrote: > # (False, None), no Exception > print kdesktop.KBackgroundIface.currentWallpaper(current_desktop) > While the kwin stuff works just fine, returning the name of the > current desktop, from kdesktop.KBackgroundIface.getMethods() is empty > and I don't even g

[PyKDE] dcop problem querying wallpaper

2005-05-05 Thread Sebastian Kügler
Hi, Trying to query the name of the currently shown wallpaper I stumbled across the following, which is puzzling for me: #-- SNIP import dcop, dcopext, sys from kdecore import * KCmdLineArgs.init (sys.argv,"bla","foo","bar") app = KA

Re: [PyKDE] pyuic doesn't import kde modules

2005-04-07 Thread Sebastian Kügler
On Thursday 07 April 2005 15:29, Diez B. Roggisch wrote: > > As $subject says, pyuic does not seem to be aware of the fact that kde > > modules are needed when compiling .ui files that are using KDE widgets. > > To reproduce it: > > I came across this when designing a GUI (d'oh!), as soon as I add

[PyKDE] pyuic doesn't import kde modules

2005-04-07 Thread Sebastian Kügler
Hi, As $subject says, pyuic does not seem to be aware of the fact that kde modules are needed when compiling .ui files that are using KDE widgets. To reproduce it: 1) start kdevdesigner 2) create some dialog 3) add a KDE widget 4) compile with pyuic 5) try to include run the python code somewhe

Re: [PyKDE] debian's python-kde3 horribly broken

2005-04-06 Thread Sebastian Kügler
Thanks, Phil, On Wednesday 06 April 2005 10:48, Phil Thompson wrote: > > File "/home/sebas/dev/kgnuvd/kgnuvd_ui.py", line 316, in __init__ > > > > self.frame13.setSizePolicy(QSizePolicy(3,0,0,0,self.frame13.sizePolicy(). > >hasHeightForWidth())) TypeError: argument 1 of QSizePolicy() has an

Re: [PyKDE] debian's python-kde3 horribly broken

2005-04-05 Thread Sebastian Kügler
Hi Thorsten, e.a.; On Tuesday 05 April 2005 19:37, Torsten Marek wrote: > just in case somebody didn't notice: Ricardo has uploaded PyKDE 3.11.3 > built with sip 4.2.1 and patched work with KDE 3.3.2 to Debian/unstable. Thanks, installs fine, but ... Traceback (most recent call last): File "mo

[PyKDE] debian's python-kde3 horribly broken

2005-03-30 Thread Sebastian Kügler
Hi, I am working on a couple of KDE applications with PyKDE and noticed that python-kde3 broke with the latest upgrade (for both ports, i386 and pure64). I cannot import most of the pykde modules anymore, getting the following errors: miro.sebas(~): python Python 2.3.5 (#2, Mar 27 2005, 09:43:

Re: [PyKDE] [PATCH] python dcop can't return linebreaked strings

2005-03-16 Thread Sebastian Kügler
On Wednesday 16 March 2005 17:28, Jim Bublitz wrote: > On Wednesday 16 March 2005 04:07, Sebastian KÃgler wrote: > > Attached is a patch that enables me to return strings containing > > linebreaks from dcop calls. I think it's pretty obvious and shouldn't > > cause harm. > I've updated the tarbal

[PyKDE] [PATCH] python dcop can't return linebreaked strings

2005-03-16 Thread Sebastian Kügler
Hi Simon, Attached is a patch that enables me to return strings containing linebreaks from dcop calls. I think it's pretty obvious and shouldn't cause harm. Are you the right person to merge this bit? Thanks, sebas -- http://vizZzion.org | GPG Key ID: 9119 0EF9 - - - - - - - - - - - -

Re: [PyKDE] PyKDE and KDE 3.4.0

2005-03-03 Thread Sebastian Kügler
Hi Simon, On Thursday 03 March 2005 07:58, Simon Edwards wrote: > On Thursday 03 March 2005 07:18, Jim Bublitz wrote: > > I just compiled the latest PyKDE snapshot (20050301) against KDE 3.4.0rc1 > > and it compiles without a hitch and seems to work fine (didn't test much > > though). > > In KD

Re: [PyKDE] Interfacing PyQt to non-Qt python

2005-02-05 Thread Sebastian Kügler
On Saturday 05 February 2005 21:13, Jeremy Sanders wrote: > I'd like to allow non-PyQt python programs to access some of my > application's functionality. Probably dcop is an option: http://www.volny.cz/bwian/dcop.html http://developer.kde.org/documentation/library/kdeqt/dcop.html Python binding

Re: [PyKDE] Is PyKDE good for my project?

2004-06-21 Thread Sebastian Kügler
On Tuesday 22 June 2004 07:07, Maurizio Colucci wrote: > 1) > Can I write a kicker applet completely in PyKDE? If so, could you please > give me some hint how to do it? (e.g., where do I put the init() function, > where do I copy the .py file, how do I cope with the requirement of having > a .la fi

Re: [review] [PyKDE] missing pythonize.h in PyKDE-3.11rc1?

2004-05-21 Thread Sebastian Kügler
On Friday 21 May 2004 06:01, Jim Bublitz wrote: > On Thursday 20 May 2004 17:10, Sebastian Kügler wrote: > > I am trying to install Simon's guidance on my debian sid machine, but I > > encountered the following problem. > > serviceconfig/kcm_serviceconfig.cpp:11:23: py

[PyKDE] missing pythonize.h in PyKDE-3.11rc1?

2004-05-20 Thread Sebastian Kügler
Hi, I am trying to install Simon's guidance on my debian sid machine, but I encountered the following problem. running build_kcm libtool --mode=compile g++ -pthread -c -g -fno-strict-aliasing -DNDEBUG -g -O3 -Wall -Wstrict-prototypes -I/usr/include -I/usr/include -I/usr/include/python2.3 -I/u