Hi

I noticed there are no interactive viewer with the xlib graphics backend
like i've seen for the wx backend. Thought that would be a really nice way
to learn, so i made a quick attempt to roll out my own using python's
threading:

in the PAF examples i replaced
my_context.start_display()

with

class ThreadedView ( threading.Thread ):
    def __init__(self, context):
        threading.Thread.__init__(self)
        self.context = context

    def run ( self ):
        self.context.start_display()

ThreadedView(my_context).start()


This naive implementation promptly threw me a segmentation fault (also tried
the opposite, creating an InteractiveConsole in a separate thread, but as
soon as i modified any parameters same story)

So my question is: Are there currently any efforts to create an interactive
viewer for xlib? if not, could anyone give me pointers/hints to how this
could be done?

Xlib i guess is a more intermediary solution for us poor mac guys (except
jelle of course) so if the Qt backend is due in to too long time (??) it
would be a waste to put too much effort in it though.

Oh and on the subject of xlib, the menus in the sample apps dont seem to be
working for me, is this a known issue or just me?

Regards,

Henrik Rudstrom
_______________________________________________
Pythonocc-users mailing list
Pythonocc-users@gna.org
https://mail.gna.org/listinfo/pythonocc-users

Reply via email to