Beremiz as library

Issue #4 resolved
Павел Бельтюков created an issue

Hi, there is a project, called LPCManager, which is supposed to import Beremiz as a library.

LPCManager can't work with current beremiz version because of double imported wx-widgets exception.

Looks like we need to add if name == "main": import wxversion wxversion.select('2.8') import wx

instead of

import wxversion wxversion.select('2.8') import wx

in Beremiz.py

Comments (3)

  1. Павел Бельтюков reporter

    Sory I forgot to ade code markup Looks like we need to add

    if __name__ == "__main__":
        import wxversion
        wxversion.select('2.8')
        import wx
    

    instead of

        import wxversion
        wxversion.select('2.8')
        import wx
    

    in Beremiz.py

  2. Log in to comment