Hi !
 
Porting the "windowflags" example, I had a problem comparing two QtCore.Qt.WindowFlags.
 
Example:
 
In previewwindow.py i had the following code:

flag_type = (flags & QtCore.Qt.WindowType_Mask)

if (flag_type == QtCore.Qt.Window):

But when i try to make the flag_type comparisons it is always false.

To solve the problem, i had to put this line of code below before of the other two lines of code:

flags = int(flags)

I dont know if i could explain it well, can you take a look at previewwindow.py from the "windowflags" example, please ?

Is this the correct behaviour ? Do we have to explicit convert the QtCore.Qt.WindowFlags object to a "int" ?

Another thing, looking at QtCore i did not found QFlags, is it there ?

See ya


2005/12/9, Phil Thompson <[EMAIL PROTECTED]>:
On Friday 09 December 2005 11:17 pm, you wrote:
> Here goes the "wiggly" example.

Thanks,
Phil

_______________________________________________
PyKDE mailing list    [email protected]
http://mats.imk.fraunhofer.de/mailman/listinfo/pykde

Reply via email to