COM & Python

Discussion in 'Python' started by Anand K Rayudu, Apr 19, 2004.

  1. Hi all,

    I want to use python with COM extension. I am successful using python as
    client.
    I could interact to my application through COM interfaces from python.

    I also want to use the win32ui layer, which wrapped all MFC user
    interface functionality.
    I am just wondering if some on can guide me with some documentation on
    using them.
    I want to know how the call backs are handled in particular.
    Any sample code will be a great start for me.
    If this is possible I can create any dialog boxes with any controls from
    python itself!! :)
    And take advantage of MFC's View , scroll view and so on. Just exciting!!

    Thanks in advance,
    Anand
     
    Anand K Rayudu, Apr 19, 2004
    #1
    1. Advertisements

  2. Anand K Rayudu

    Larry Bates Guest

    Get a copy of
    Python Programming on Win32 By Mark Hammond, Andy Robinson

    This is the best starting point for you.

    Larry Bates
    Syscon, Inc.

    "Anand K Rayudu" <> wrote in message
    news:...
    > Hi all,
    >
    > I want to use python with COM extension. I am successful using python as
    > client.
    > I could interact to my application through COM interfaces from python.
    >
    > I also want to use the win32ui layer, which wrapped all MFC user
    > interface functionality.
    > I am just wondering if some on can guide me with some documentation on
    > using them.
    > I want to know how the call backs are handled in particular.
    > Any sample code will be a great start for me.
    > If this is possible I can create any dialog boxes with any controls from
    > python itself!! :)
    > And take advantage of MFC's View , scroll view and so on. Just exciting!!
    >
    > Thanks in advance,
    > Anand
    >
    >
    >
    >
     
    Larry Bates, Apr 19, 2004
    #2
    1. Advertisements

  3. Hi Larry,

    Thanks for the suggestion, I have gone through the book, but
    unfortunately nothing much is discussed about this topic.
    Being new to MFC i am finding it difficult to get started.
    I want to just create a dialog box, with my own controls and get the
    python call backs for them.
    can some one please share some example source code or any experience
    regarding this.
    Any help will be a great start point for me.

    Regards,
    Anand


    Larry Bates wrote:

    >Get a copy of
    >Python Programming on Win32 By Mark Hammond, Andy Robinson
    >
    >This is the best starting point for you.
    >
    >Larry Bates
    >Syscon, Inc.
    >
    >"Anand K Rayudu" <> wrote in message
    >news:...
    >
    >
    >>Hi all,
    >>
    >>I want to use python with COM extension. I am successful using python as
    >>client.
    >>I could interact to my application through COM interfaces from python.
    >>
    >>I also want to use the win32ui layer, which wrapped all MFC user
    >>interface functionality.
    >>I am just wondering if some on can guide me with some documentation on
    >>using them.
    >>I want to know how the call backs are handled in particular.
    >>Any sample code will be a great start for me.
    >>If this is possible I can create any dialog boxes with any controls from
    >>python itself!! :)
    >>And take advantage of MFC's View , scroll view and so on. Just exciting!!
    >>
    >>Thanks in advance,
    >>Anand
    >>
    >>
    >>
    >>
    >>
    >>

    >
    >
    >
    >
     
    Anand K Rayudu, Apr 22, 2004
    #3
  4. Anand K Rayudu

    David Fraser Guest

    What about http://www.onlamp.com/pub/a/python/excerpts/chpt20/pythonwin.html
    (from that book)?
    Or have you tried wxPython (not COM but great)?

    David

    Anand K Rayudu wrote:
    > Hi Larry,
    >
    > Thanks for the suggestion, I have gone through the book, but
    > unfortunately nothing much is discussed about this topic.
    > Being new to MFC i am finding it difficult to get started.
    > I want to just create a dialog box, with my own controls and get the
    > python call backs for them.
    > can some one please share some example source code or any experience
    > regarding this.
    > Any help will be a great start point for me.
    >
    > Regards,
    > Anand
    >
    >
    > Larry Bates wrote:
    >
    >>Get a copy of
    >>Python Programming on Win32 By Mark Hammond, Andy Robinson
    >>
    >>This is the best starting point for you.
    >>
    >>Larry Bates
    >>Syscon, Inc.
    >>
    >>"Anand K Rayudu" <> wrote in message
    >>news:...
    >>
    >>
    >>>Hi all,
    >>>
    >>>I want to use python with COM extension. I am successful using python as
    >>>client.
    >>>I could interact to my application through COM interfaces from python.
    >>>
    >>>I also want to use the win32ui layer, which wrapped all MFC user
    >>>interface functionality.
    >>>I am just wondering if some on can guide me with some documentation on
    >>>using them.
    >>>I want to know how the call backs are handled in particular.
    >>>Any sample code will be a great start for me.
    >>>If this is possible I can create any dialog boxes with any controls from
    >>>python itself!! :)
    >>>And take advantage of MFC's View , scroll view and so on. Just exciting!!
    >>>
    >>>Thanks in advance,
    >>>Anand
    >>>
    >>>
    >>>
    >>>
    >>>
    >>>

    >>
    >>
    >>
    >>

    >
     
    David Fraser, Apr 22, 2004
    #4
  5. Dear David,

    Thanks a lot for the link, Actually that is same from the book.
    I am trying to provide a "Rapid Application Development Environment"
    for the application I am developing through python.
    The reason I Want to stick on to pythonwin is , it comes as a default
    with python extension for windows.
    Also that my application is based on MFC, it looks like pythonwin is a
    natural fit for me.
    I can get same look & feel as the other dialog boxes.
    My developers have good experience on MFC.

    I will try out wxPython also & see.
    For me it looks like pythonwin is a preferred option.
    Thanks again,
    Anand





    David Fraser wrote:

    > What about
    > http://www.onlamp.com/pub/a/python/excerpts/chpt20/pythonwin.html
    > (from that book)?
    > Or have you tried wxPython (not COM but great)?
    >
    > David
    >
    > Anand K Rayudu wrote:
    >
    >> Hi Larry,
    >>
    >> Thanks for the suggestion, I have gone through the book, but
    >> unfortunately nothing much is discussed about this topic.
    >> Being new to MFC i am finding it difficult to get started.
    >> I want to just create a dialog box, with my own controls and get the
    >> python call backs for them.
    >> can some one please share some example source code or any experience
    >> regarding this.
    >> Any help will be a great start point for me.
    >>
    >> Regards,
    >> Anand
    >>
    >>
    >> Larry Bates wrote:
    >>
    >>> Get a copy of
    >>> Python Programming on Win32 By Mark Hammond, Andy Robinson
    >>>
    >>> This is the best starting point for you.
    >>>
    >>> Larry Bates
    >>> Syscon, Inc.
    >>>
    >>> "Anand K Rayudu" <> wrote in message
    >>> news:...
    >>>
    >>>
    >>>> Hi all,
    >>>>
    >>>> I want to use python with COM extension. I am successful using
    >>>> python as
    >>>> client.
    >>>> I could interact to my application through COM interfaces from python.
    >>>>
    >>>> I also want to use the win32ui layer, which wrapped all MFC user
    >>>> interface functionality.
    >>>> I am just wondering if some on can guide me with some documentation on
    >>>> using them.
    >>>> I want to know how the call backs are handled in particular.
    >>>> Any sample code will be a great start for me.
    >>>> If this is possible I can create any dialog boxes with any controls
    >>>> from
    >>>> python itself!! :)
    >>>> And take advantage of MFC's View , scroll view and so on. Just
    >>>> exciting!!
    >>>>
    >>>> Thanks in advance,
    >>>> Anand
    >>>>
    >>>>
    >>>>
    >>>>
    >>>>
    >>>
    >>>
    >>>
    >>>
    >>>

    >>
     
    Anand K Rayudu, Apr 22, 2004
    #5
    1. Advertisements

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Cameron Laird
    Replies:
    3
    Views:
    877
    Dennis Lee Bieber
    Jun 28, 2003
  2. Irmen de Jong
    Replies:
    0
    Views:
    490
    Irmen de Jong
    Jun 30, 2003
  3. Gina Schuffenhauer

    Python 2.0 / Python 2.2

    Gina Schuffenhauer, Jul 1, 2003, in forum: Python
    Replies:
    0
    Views:
    409
    Gina Schuffenhauer
    Jul 1, 2003
  4. hab
    Replies:
    2
    Views:
    693
    Donn Cave
    Jul 7, 2003
  5. Irmen de Jong
    Replies:
    0
    Views:
    538
    Irmen de Jong
    Jul 7, 2003
  6. Replies:
    0
    Views:
    469
  7. JW
    Replies:
    1
    Views:
    767
    David Jeske
    Jul 12, 2003
  8. Replies:
    0
    Views:
    954
Loading...