I'm starting off with python and IronPython and I'm having issue with inheritance. I'm not sure if this is python or IronPython's. I inherited from ToolStripMenuItem like this
class NToolStripMenuItem(ToolStripMenuItem):
def __init__(self, text, items):
self.Text = text;
self.DropDownItems.AddRange(items)
It says it's expecting an Image param instead an array of toolstripitem. I have defined __init__ to accept 2 parameters with text and items, I know the parent is having a text and image parameters but wouldn't it be overriden? Thanks.
nebulom
0 Points
1 Post
Inheritance issue
May 29, 2012 03:46 AM|LINK
I'm starting off with python and IronPython and I'm having issue with inheritance. I'm not sure if this is python or IronPython's. I inherited from ToolStripMenuItem like this
and wanted to use as
It says it's expecting an Image param instead an array of toolstripitem. I have defined __init__ to accept 2 parameters with text and items, I know the parent is having a text and image parameters but wouldn't it be overriden? Thanks.