53 lines
2.0 KiB
Plaintext
53 lines
2.0 KiB
Plaintext
From: hyoon at bigfoot.com (Hoon Yoon)
|
|
Date: Thu, 15 Apr 1999 08:58:18 -0400
|
|
Subject: Q about OCXtest.py example
|
|
Message-ID: <3715E26A.F17BA8BD@bigfoot.com>
|
|
Content-Length: 1778
|
|
X-UID: 696
|
|
|
|
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 at yahoo.com hoon at 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
|
|
*****************************************************************************
|
|
-------------- next part --------------
|
|
A non-text attachment was scrubbed...
|
|
Name: vcard.vcf
|
|
Type: text/x-vcard
|
|
Size: 202 bytes
|
|
Desc: Card for Hoon Yoon
|
|
URL: <http://mail.python.org/pipermail/python-list/attachments/19990415/fdad46d4/attachment.vcf>
|
|
|
|
|