Re: [PyKDE] Hi, help format QTables

2005-06-19 Thread James Emerton
On 6/19/05, Julian Ramos Marrero <[EMAIL PROTECTED]> wrote: > Hi list, > > I have a problem, I do not know as to implement format mask on items > QTables, somebody could orient to me. You'll need to subclass QTableItem and implement createEditor(), to set the format mask for editing. Jam

Re: [PyKDE] Hello world with a twist

2005-06-19 Thread Kevin Walzer
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Doh, forget about it. I figured this out implementing a custom slot in Designer. Sorry for the waste of time. Kevin Walzer wrote: | Hello, | | I'm trying to modify the standard "hello world" PyQt program to print | "hello world" to stdout: | | # hel

[PyKDE] Hello world with a twist

2005-06-19 Thread Kevin Walzer
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hello, I'm trying to modify the standard "hello world" PyQt program to print "hello world" to stdout: # hello1.py # import sys from qt import * app=QApplication(sys.argv) button=QPushButton("Hello World", None) app.setMainWidget(button) button.show

[PyKDE] Hi, help format QTables

2005-06-19 Thread Julian Ramos Marrero
Hi list, I have a problem, I do not know as to implement format mask on items QTables, somebody could orient to me. Regards, Julián ___ PyKDE mailing listPyKDE@mats.imk.fraunhofer.de http://mats.imk.fraunhofer.de/mailman/listinfo/pykde

Re: [PyKDE] Custom signal/slot function

2005-06-19 Thread Diez B. Roggisch
Kevin Walzer wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hello, I'm working on my first PyQt application, and to get a feel for signals and slots, I'm trying to have my application echo the text entered into a line edit widget to stdout. However, when I test this, what is printed is "N

[PyKDE] Custom signal/slot function

2005-06-19 Thread Kevin Walzer
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hello, I'm working on my first PyQt application, and to get a feel for signals and slots, I'm trying to have my application echo the text entered into a line edit widget to stdout. However, when I test this, what is printed is "Not implemented yet,"

Re: [PyKDE] Eric 3.7 & latest snapshoots

2005-06-19 Thread Detlev Offenbach
Am Sonntag, 19. Juni 2005 09:33 schrieb Torsten Marek: > Jim Bublitz schrieb: > > On Saturday 18 June 2005 16:54, Antoni Aloy wrote: > >>Hello! > >> > >>I have installed the lastest Qscintilla, PyQT and SIP snapshoot on my > >> brand new G5, using Fedora Core 4. > >> > >>The eric instaler complains

Re: [PyKDE] Two minor sip issues

2005-06-19 Thread Phil Thompson
On Sunday 19 June 2005 3:21 pm, Gerard Vermeulen wrote: > Phil > > (1 ) sip.h contains the lines > > #if !defined(ANY) > #define ANY void > #endif > > and as far as I can see, ANY isn't used anywhere by SIP or its generated > code. However, it pollutes the global namespace with nasty side effec

Re: [PyKDE] Memory leak: Cycles with QObject's doesn't get collected

2005-06-19 Thread Phil Thompson
On Friday 17 June 2005 5:36 pm, Giovanni Bajo wrote: > Phil Thompson <[EMAIL PROTECTED]> wrote: > >> I think I have found another memory leak. When you create cycles with > >> QObjects they aren't collected. This doesn't happen with pure python > >> objects (as expected), but in that case I have fo

[PyKDE] Two minor sip issues

2005-06-19 Thread Gerard Vermeulen
Phil (1 ) sip.h contains the lines #if !defined(ANY) #define ANY void #endif and as far as I can see, ANY isn't used anywhere by SIP or its generated code. However, it pollutes the global namespace with nasty side effects, eg enum { ANY = 0 }; is preprocessed to enum { void = 0 }; (2) Since

Re: [PyKDE] SIP parse error

2005-06-19 Thread Phil Thompson
On Friday 17 June 2005 9:13 pm, James Emerton wrote: > There is a small issue with the parsing code in SIP. I get a parse > error whenever a %MethodCode section contains a %, such as a printf() > format string. > > My workaround right now is to use something like this... > const char fmt[] = { 37,

[PyKDE] Re: Basic question about custom slot/function

2005-06-19 Thread Matej Cepl
Kevin Walzer wrote: > void form1::LaunchFoo() > { > ~ # get the text typed in the line edit > ~ e = self.lineEdit1.text().ascii() > > ~ #show output > ~os.system('echo %s', e) > ~} Two most silly questions: a) what are these ~ characters? is it somehow result of direct copy from your

Re: [PyKDE] Eric 3.7 & latest snapshoots

2005-06-19 Thread Torsten Marek
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Jim Bublitz schrieb: > On Saturday 18 June 2005 16:54, Antoni Aloy wrote: > >>Hello! >> >>I have installed the lastest Qscintilla, PyQT and SIP snapshoot on my >> brand new G5, using Fedora Core 4. >> >>The eric instaler complains saying I must have a

Re: [PyKDE] Basic question about custom slot/function

2005-06-19 Thread Torsten Marek
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Kevin Walzer schrieb: > Hello, > > I'm working on my first PyQt application, and to get a feel for signals > and slots, I'm trying to have my application echo the text entered into > a line edit widget to stdout. However, when I test this, what is pri