Re: Pipe in the "return" statement

2011-07-25 Thread Archard Lias
On 25 Jul., 18:11, Christian Heimes wrote: > Am 25.07.2011 17:28, schrieb Archard Lias: > > > It would be great if you could elaborate a little more on that. Am I > > not supposed to access the parent here? > > You must spell out the parent explicitly, otherwise subcla

Re: Pipe in the "return" statement

2011-07-25 Thread Archard Lias
On Jul 25, 2:33 pm, Christian Heimes wrote: > Am 25.07.2011 14:00, schrieb Archard Lias: > > > def flags(self, index): > >     if not index.isValid(): > >         return Qt.ItemIsEnabled > > >     return super(self.__class__, self).flags(index) | > > Your u

Re: Pipe in the "return" statement

2011-07-25 Thread Archard Lias
On Jul 25, 4:35 pm, Oliver Bestwalter wrote: > Hello Archard, > > On 25.07.2011, at 16:16, Archard Lias wrote: > > > > > > > > > > > On Jul 25, 2:03 pm, Ian Collins wrote: > >> On 07/26/11 12:00 AM, Archard Lias wrote: > > >>> Hi,

Re: Pipe in the "return" statement

2011-07-25 Thread Archard Lias
On Jul 25, 4:39 pm, John Gordon wrote: > In <1c175da2-79f4-40ed-803f-217dc935d...@m8g2000yqo.googlegroups.com> Archard > Lias writes: > > > > > return | > > > > It's simply a bitwise OR. > > Yes, but how does it get determined, which one act

Re: Pipe in the "return" statement

2011-07-25 Thread Archard Lias
On Jul 25, 2:03 pm, Ian Collins wrote: > On 07/26/11 12:00 AM, Archard Lias wrote: > > > Hi, > > > Still I dont get how I am supposed to understand the pipe and its task/ > > idea/influece on control flow, of: > > return  | > > ?? > > It's simpl

Pipe in the "return" statement

2011-07-25 Thread Archard Lias
return Qt.ItemIsEnabled return super(self.__class__, self).flags(index) | Qt.ItemIsEditable Still I dont get how I am supposed to understand the pipe and its task/ idea/influece on control flow, of: return | ?? Thankful if you could help me with this. Kind regards, Archard Lias -- http:/