2013/12/30 Marko <marko...@gmail.com>

> As you probably know, I'm developing a simple CAD application (Kubos)
> based on pythonOCC.
>
> My application was originally based on the "SimpleGui" module which
> comes with pythonOCC. In the past I have essentially developed a more
> sophisticated version of SimpleGui which acts as a backend for "Kubos"
> and "Kubos Script". Recently I have put some effort into separating
> the backend and the frontends more cleanly and I think that the
> backend could be useful for other projects as well now.
>
> Using the backend of Kubos you can easily:
>
> * start a simple CAD application with a single line of code
> * add new actions to the toolbar and menu
> * add predefined actions (import / export STEP files, view control, ...)
> * add new or predefined interactive modeling tools
> * add undo/redo
>
> You can watch a short demo here:
> https://www.youtube.com/watch?v=O8a1mm79flA
>
> The code is here: https://sourceforge.net/p/kubos
>
> I hope this will be helpful for others! Currently there's little
> documentation about it. If you'd like to use it, feel free to ask me
> anything.
>
> Question to the developers of pythonOCC: As this is derived from
> pythonOCC's SimpleGui, I thought it would make sense to integrate it
> back into pythonOCC - not as a replacement of SimpleGui, but as an
> additional option. Any interest? (I can provide more details if you're
> interested)
>
> Marko
>
>
Hi Marko,

This is very interesting, thank you for sharing. I'm trying to get kubos
work on my Windows machine (PyQt was dropped from my Mac when I upgraded to
OSX Maverick), but it fails with the following trace:
Traceback (most recent call last):
  File "__main__.pyw", line 34, in <module>
    from app import app
  File "Z:\kubos\kubos\app.py", line 20, in <module>
    app = _KubosApp(appdir=_file)
  File "Z:\kubos\kubos\appclass.py", line 44, in __init__
    from doc import doc_ctrl
  File "Z:\kubos\kubos\doc.py", line 9, in <module>
    import active_tool
  File "Z:\kubos\kubos\active_tool.py", line 48, in <module>
    activate_select_tool()
  File "Z:\kubos\kubos\active_tool.py", line 19, in activate_select_tool
    select.action.trigger()
  File "Z:\kubos\kubos\tools\tool.py", line 47, in _get_action
    checkable=True, parent=None)
  File "Z:\kubos\kubos\lib\action.py", line 27, in __init__
    self.setToolTip(tooltip)
TypeError: QAction.setToolTip(QString): argument 1 has unexpected type
'NoneType

SimpleGUI has the advantage to be, as its name suggests, 'simple'. There
are of course pros and cons regarding the opportunity to merge your work
into pythonocc, I don't have a clear idea yet. I first focus on testing
kubos.

Regards,

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

Reply via email to