Re: Python and Qt4 Designer

2012-07-16 Thread Michael Torrie
On 07/15/2012 01:58 AM, Vincent Vande Vyvre wrote: > Rusi is not the op, and his question is about these lines > > app = None > if ( not app ): Yeah that's a no-op. The original author of that code is clearly confused there. > > not this one > > app = QtGui.QApplication([]) >

Re: Python and Qt4 Designer

2012-07-15 Thread Vincent Vande Vyvre
On 15/07/12 07:31, Michael Torrie wrote: > On 07/14/2012 11:13 AM, rusi wrote: >> I looked at the second link and find code like this: >> >> app = None if ( not app ): app = QtGui.QApplication([]) >> >> Maybe I'm dense but whats that if doing there? >> >> Frankly I seem to be a bit jinxed with gui

Re: Python and Qt4 Designer

2012-07-14 Thread Michael Torrie
On 07/14/2012 11:13 AM, rusi wrote: > I looked at the second link and find code like this: > > app = None if ( not app ): app = QtGui.QApplication([]) > > Maybe I'm dense but whats that if doing there? > > Frankly I seem to be a bit jinxed with gui stuff. A few days ago > someone was singing t

Re: Python and Qt4 Designer

2012-07-14 Thread rusi
On Jul 14, 7:45 pm, Michael Torrie wrote: > On 07/13/2012 03:12 PM, Jean Dubois wrote: > > > Thanks for the extra docu references > > In this day and age, I think compiling ui files to code is probably on > the way out.  Instead you should consider using the ui files directly in > your code.  This

Re: Python and Qt4 Designer

2012-07-14 Thread Michael Torrie
On 07/13/2012 03:12 PM, Jean Dubois wrote: > Thanks for the extra docu references In this day and age, I think compiling ui files to code is probably on the way out. Instead you should consider using the ui files directly in your code. This has the advantage of letting you change the gui somewha

Re: Python and Qt4 Designer

2012-07-13 Thread Jean Dubois
Op vrijdag 13 juli 2012 03:52:51 UTC+2 schreef Vincent Vande Vyvre het volgende: > On 12/07/12 08:42, Jean Dubois wrote: > > On 12 jul, 02:59, Vincent Vande Vyvre > > wrote: > >> On 11/07/12 17:37, Jean Dubois wrote: > >> > >> > >> > >> > >> > >> > >> > >>> I'm trying

Re: Python and Qt4 Designer

2012-07-12 Thread Vincent Vande Vyvre
On 12/07/12 08:42, Jean Dubois wrote: > On 12 jul, 02:59, Vincent Vande Vyvre > wrote: >> On 11/07/12 17:37, Jean Dubois wrote: >> >> >> >> >> >> >> >>> I'm trying to combine python-code made with QT4 designer with plain >>> python statements like >>> file = open("test","w") >>> Can anyone tell me

Re: Python and Qt4 Designer

2012-07-11 Thread Jean Dubois
On 12 jul, 02:59, Vincent Vande Vyvre wrote: > On 11/07/12 17:37, Jean Dubois wrote: > > > > > > > > > I'm trying to combine python-code made with QT4 designer with plain > > python statements like > > file = open("test","w") > > Can anyone tell me what I have to  add to the following code just to