[IronPython] Bitwise boolean operators and Forms

Keith J. Farmer kfarmer at thuban.org
Wed Dec 28 21:02:29 CET 2005

Perhaps he intends Anchor instead of Dock?



Keith J. Farmer

kfarmer at thuban.org


From: users-bounces at lists.ironpython.com
[mailto:users-bounces at lists.ironpython.com] On Behalf Of Tim Riley
Sent: Wednesday, 28 December 2005 11:25

I don't understand. Why would you use an or statement when assigning a

On 12/28/05, jeff sacksteder < jsacksteder at gmail.com
<mailto:jsacksteder at gmail.com> > wrote:

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/8e754d3e/attachment.html>

More information about the Ironpython-users mailing list