Coder Social home page Coder Social logo

siqt's People

Contributors

rth avatar

Watchers

 avatar  avatar

Forkers

rth

siqt's Issues

Add Compatibility hooks mechanism

A mechanism should be implemented to extend the SiQt with virtual modules that would help to smooth the differences between different backend. For instance SiQt.QtWidgets should be importable (and redirect to SiQt.QtGui) with the PyQt4 backend, even though it was only introduced in PyQt5.

This mechanism should be optional, and enabled when the user uses the mode='compatible' option.

Enhance the test suite on Travis-CI

To test the functionality more comprehensively, one could automatically test that SiQt is able to run example directories from PyQt4, PyQt5 and PySide with a different backend. The ratio of successfully run examples then would provide a measurement of the progress for the compatibility hooks.

Import hooks mechanism failing with Python 2

The current import hooks do not seem to work with Python 2. In particular,

 python2 -c "import SiQt; SiQt.use('PyQt5'); import PyQt4.QtCore"

raises the following exception,

 Traceback (most recent call last):
    File "<string>", line 1, in <module>
    File "/home/rth/src/SiQt/SiQt/siqt/importers.py", line 132, in load_module
       module = self._find_and_load_module(name, path)
    File "/home/rth/src/SiQt/SiQt/siqt/importers.py", line 181, in _find_and_load_module
     raise e
  SystemError: dynamic module not initialized properly

The test suite is failing for the same reason. The underlying issue was posted as a SO question, as I'm running out of ideas here...

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.