AW: Re: [omniORB] Tie mechanism and python

Duncan Grisby duncan at grisby.org
Thu Feb 16 11:04:00 GMT 2006


On Tuesday 14 February, andreas at roedl.ch wrote:

> I want to tie my python classes - actually pyqt classes - to the
> skeleton classes of the interface. Every class in a pure pyqt
> application is inherited from a qt class, mainly from qobject or
> qwidget classes. I just started to use python for gui (qt)
> applications, but I'm almost certain, that I need tie classes to glue
> omniorb and pyqt together in a sane and elegant way.

You can use multiple inheritance. (Except that with omniORBpy 2.x, you
can't use a new-style class for a servant class, so you might not be
able to. The restriction is lifted in omniORBpy 3.0, currently in beta.)

Having said that, I'd question the design of a program that uses a
single class for both a UI element and a CORBA servant. It suggests poor
separation between diverse parts of functionality. It would be more
normal to use separate classes for the UI parts and the CORBA parts.

Cheers,

Duncan.

-- 
 -- Duncan Grisby         --
  -- duncan at grisby.org     --
   -- http://www.grisby.org --



More information about the omniORB-list mailing list