how should i use this function?

David C. Ullrich dullrich at sprynet.com
Wed Jun 4 23:46:19 CEST 2008


In article 
<f87fa9ad-f048-4728-a9a9-8845fe37621f at a1g2000hsb.googlegroups.com>,
 Gandalf <goldnery at gmail.com> wrote:

> On Jun 4, 8:21 pm, sturlamolden <sturlamol... at yahoo.no> wrote:
> > On Jun 4, 8:14 pm, Gandalf <goldn... at gmail.com> wrote:
> >
> > > I tried to import win32ui.PyCRichEditCtrl, But the shell told me
> > > their's no such module.
> >
> > There isn't, as it is a class. win32ui is a module. If you cannot
> > import that, you don't have pywin32 installed. Go get it from
> > Sourceforge.
> 
> But I pywin32 use it all the time i have pywinauto

And, as I seem to recall someone saying once, win32ui.PyCRichEditCtrl
is not a module so you can't import it. You can say

from win32ui import PyCRichEditCtrl

Or you can say

import win32ui

and then reference win32ui.PyCRichEditCtrl .

-- 
David C. Ullrich



More information about the Python-list mailing list