Jul
14
2010
I am working through IronPython in Action.
The following code fails at the line that reads label=Label()
The error returned is NameError: name 'Label' is not defined
This is exactly as in the book. And I don't know why it can't resolve the Label class...especially since it resolves the Form class with no problems. Any ideas?
Seth
import clr
clr.AddReference('System.Windows.Forms')
from System.Windows.Forms import Application,Form
form=Form()
form.Text='Hello World'
label=Label()
label.Text='Wassup'
form.Controls.Add(label)
Application.Run(form)
Jul
14
2010
Hello,
I am working through IronPython in Action.
The following code fails at the line that reads label=Label()
The error returned is NameError: name 'Label' is not defined
This is exactly as in the book. And I don't know why it can't resolve the Label class...especially since it resolves the Form class with no problems. Any ideas?
Seth
import clr
clr.AddReference('System.Windows.Forms')
from System.Windows.Forms import Application,Form
form=Form()
form.Text='Hello World'
label=Label()
label.Text='Wassup'
form.Controls.Add(label)
Application.Run(form)
Jul
10
2010
Currently Browsing: http://is.gd/dn8VJ
Jul
06
2010
After 13+ years my Brother HL-1240 finally died.

In all that time I only had 2 paper jams and both of those were in the last 2 years. It finally bit the dust. It started acting up several years ago (drum light never did go off ) but I managed to get a couple of extra years out of it.
The other day all the lights started flashing randomly. No amount of resetting or restarting would fix it.
Now, if its replacement, a Samsung ML-2851ND performs half-so-well, I will be well-pleased.
Seth