[IronPython] Bitwise boolean operators and Forms

Tim Riley riltim at gmail.com
Wed Dec 28 20:25:11 CET 2005


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

~Tim

On 12/28/05, jeff sacksteder <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
> sys.LoadAssemblyByName('System.Windows.Forms')
> from System.Windows.Forms import *
>
> my_control = RichTextBox()
> my_control.Dock = DockStyle.Right | DockStyle.Left
> my_control.AutoSize = True
>
> my_form = Form()
> my_form.Controls.Add(my_control)
> my_form.Show()
>
> Application.Run(my_form)
> *
> _______________________________________________
> users mailing list
> users at lists.ironpython.com
> http://lists.ironpython.com/listinfo.cgi/users-ironpython.com
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/ironpython-users/attachments/20051228/2188c24b/attachment.html>


More information about the Ironpython-users mailing list