Mailing List Archive

Q about OCXtest.py example
This is a multi-part message in MIME format.
--------------B7DDE0430319EA638362CA74
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

Thanks to Mark. I think I am getting hang of COM.
I finally got this example, but one more Q.
Let's say I have two controls either 2 calendar or 1 calendar & 1 timer
for instance.
I guess doing it the second one will be easy, I will just have to
inherit one more control in class
MyCal(activex.Control, calendarParentModule.Calendar,
timerParentModule.timer):
and just specify the Ondefs; however, what do I do when I have 2
controls same controls on the dialog or inherited Ondefs have same name?
Do someone have some example they don't mind sharing?

---------------------------------------------------------
def GetTestCalendarClass():
global calendarParentModule
win32ui.DoWaitCursor(1)
calendarParentModule =
gencache.EnsureModule("{8E27C92E-1264-101C-8A2F-040224009C02}", 0, 7, 0)
win32ui.DoWaitCursor(0)
if calendarParentModule is None: return None
class TestCalDialog(dialog.Dialog):
def OnInitDialog(self):
class MyCal(activex.Control, calendarParentModule.Calendar): #
<---------*********
def OnAfterUpdate(self):
print "OnAfterUpdate"

--
*****************************************************************************
S. Hoon Yoon (Quant) Merrill Lynch Equity Trading,
yelled@yahoo.com hoon@bigfoot.com(w)
"Miracle is always only few standard deviations away, but so is
catastrophe."
* Expressed opinions are often my own, but NOT my employer's.
"I feel like a fugitive from the law of averages." Mauldin
*****************************************************************************
--------------B7DDE0430319EA638362CA74
Content-Type: text/x-vcard; charset=us-ascii; name="vcard.vcf"
Content-Transfer-Encoding: 7bit
Content-Description: Card for Hoon Yoon
Content-Disposition: attachment; filename="vcard.vcf"

begin: vcard
fn: Hoon Yoon
n: ;Hoon Yoon
email;internet: hyoon@bigfoot.com
x-mozilla-cpt: ;0
x-mozilla-html: FALSE
version: 2.1
end: vcard


--------------B7DDE0430319EA638362CA74--