[IronPython] Bitwise boolean operators and Forms

Martin Maly Martin.Maly at microsoft.com
Wed Dec 28 20:15:16 CET 2005

The DockStyle enum does not have the Flags attribute so IronPython doesn't add the bitwise operators.


From: users-bounces at lists.ironpython.com [mailto:users-bounces at lists.ironpython.com] On Behalf Of jeff sacksteder
Sent: Wednesday, December 28, 2005 11:02 AM
To: users at lists.ironpython.com
Subject: [IronPython] Bitwise boolean operators and Forms

The code in this snippet fails, claiming the bitwise operator '|' is unsupported for for DockStyles. Is this an unimplemented item, bug, or misunderstanding on my part?

import sys
from System.Windows.Forms import *

my_control = RichTextBox()
my_control.Dock = DockStyle.Right | DockStyle.Left
my_control.AutoSize = True

my_form = Form()

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/ironpython-users/attachments/20051228/8105e3f1/attachment.html>

More information about the Ironpython-users mailing list