|
|
this quote from HENON fabien of Wednesday 08 Jan 2003 3:10 am:
> This is getting interesting...
>
> I downloaded the rpm file from the pyvon web site and installed it after
> removing the previous installation with a 'rpm -e pyvon'
>
> And it worked fine.
I don't know. I tried rpm -e pyvon when Daniel suggested it for pyvon 1.1.
Also tried it with pyvon 1.2. But no luck.
> Things you might try :
I'll try these out in the morning. (10:30pm so a bit late for me to start
now.)
>
> One more thing near line 2252 :
>
> Replace this
> ----snip----------
> ------snap --------------
>
> with this :
>
> ----snip----------
> for x in listeobjets :
> longname = os.path.join(InsertDir,x)
> menu1 = Menu(menu_insert_popup,tearoff=0,font=police)
> if os.path.isdir(longname) :
> menu_insert_popup.add_cascade(label=x,menu=menu1)
> importedir(longname,menu1)
> if os.path.isfile(longname) :
> if x[-3:] == 'txt' or x[-3:] == 'pov' :
> menu1.add_command(label=x.............
> ------snap --------------
Yes, move the menu1= line to above the if statement. I tried that earlier
with 1.1 and recently with 1.2, and it lets pyvon start (and it appears to
function ok). Except the insert pull down menu in pyvon doesn't function
properly - it flashes up and disappears as soon as I let go of the mouse
button. Other menus stay up after one click so you can select a menu item.
(I tried looking through an earlier pyvon for how menus are handled, but it
was too different for me to make sense of it.)
cheers
Peter
Post a reply to this message
|
|