<html>
  <head>
    <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    In case anyone is interested, I have made some few tests (with
    success) adding a fallback line into <tt>qgis.gui.__init__.py</tt>:<br>
    <br>
    <tt>try:</tt><tt><br>
    </tt><tt>    from qgis._gui import QgsCodeEditor</tt><tt><br>
    </tt><tt>except:</tt><tt><br>
    </tt><tt>    from CodeEditorPatch import *</tt><br>
    <br>
    CodeEditorPatch is a "pure-python" module which mimics the
    CodeEditor class (and derivatives) implementation as much as
    possible (there are two workarounds for some event handling issues
    which I haven't been able incorporate without errors, and there is
    some code regarding case sensitivity for the SQL editor, which
    apparently is not possible/needed to implement in python).<br>
    <br>
    I think this patch is appealing, because it will provide a
    (temporal) centralized solution, without having to modify each
    plugin which decides to use these classes. Also, it will target two
    active ubuntu LTRs (12.04 and 14.04) plus some debian and mint
    versions.<br>
    <br>
    The moment the missing sip files in qscintilla issue is fixed, this
    patch can be removed.<br>
    <br>
    If someone is interested in the module I can share the code, or I
    guess I could make a pull-request if some people think it is a good
    idea.<br>
    <br>
    Regards,<br>
    <br>
    <div class="moz-cite-prefix">El 24/06/16 a las 20:22, Daniel Vicente
      Lühr Sierra escribió:<br>
    </div>
    <blockquote cite="mid:ed7f8360-8f5b-dfce-8ada-9f9757ca6660@ieee.org"
      type="cite">
      <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
      <p><font face="Helvetica, Arial, sans-serif">Hi,</font><br>
      </p>
      <br>
      <div class="moz-cite-prefix">El 24/06/16 a las 18:35, Jürgen E.
        Fischer escribió:<br>
      </div>
      <blockquote cite="mid:20160624223538.GA26330@norbit.de"
        type="cite">
        <pre wrap="">Hi Daniel,

On Fri, 24. Jun 2016 at 18:03:01 -0400, Daniel Vicente Lühr Sierra wrote:
</pre>
        <blockquote type="cite">
          <pre wrap="">I noticed that the qgscodeeditor python class is not available in (my
installation of) trusty's qgis-2.14.3 packages (from repository with
ubuntugis dependencies), but it is available in xenial's qgis-2.14.3
(from repository without ubuntugis dependencies).
</pre>
        </blockquote>
        <pre wrap="">That's because of missing qsci sip files in trusty.  See #12011[0]</pre>
      </blockquote>
      Missed this one.<br>
      <blockquote cite="mid:20160624223538.GA26330@norbit.de"
        type="cite">
        <pre wrap="">db_manager uses a workaround that could probably be adapted for
the lizmap plugin too.</pre>
      </blockquote>
      I found it too, and I was testing some alternative. I was able to
      call the Scintilla editor directly in python and set it up for
      HTML syntax (2 lines of code). Could it be a fallback for the
      PyQgis API, when the c++ signatures fail? Because, even though the
      sip files  might not be present, the python scintilla class is
      available, and it could work for all QgsCodeEditor derived
      classes.<br>
      <br>
      Thanks.<br>
      <blockquote cite="mid:20160624223538.GA26330@norbit.de"
        type="cite">
        <pre wrap="">
Jürgen


[0] <a moz-do-not-send="true" class="moz-txt-link-freetext" href="http://hub.qgis.org/issues/12011">http://hub.qgis.org/issues/12011</a>

</pre>
        <br>
        <fieldset class="mimeAttachmentHeader"></fieldset>
        <br>
        <pre wrap="">_______________________________________________
Qgis-user mailing list
<a moz-do-not-send="true" class="moz-txt-link-abbreviated" href="mailto:Qgis-user@lists.osgeo.org">Qgis-user@lists.osgeo.org</a>
List info: <a moz-do-not-send="true" class="moz-txt-link-freetext" href="http://lists.osgeo.org/mailman/listinfo/qgis-user">http://lists.osgeo.org/mailman/listinfo/qgis-user</a>
Unsubscribe: <a moz-do-not-send="true" class="moz-txt-link-freetext" href="http://lists.osgeo.org/mailman/listinfo/qgis-user">http://lists.osgeo.org/mailman/listinfo/qgis-user</a></pre>
      </blockquote>
      <br>
      <pre class="moz-signature" cols="72">-- 
Daniel Vicente Lühr Sierra
IEEE Member
IEEE Student Branch Counselor - Universidad Austral de Chile

</pre>
    </blockquote>
    <br>
    <pre class="moz-signature" cols="72">-- 
Daniel Vicente Lühr Sierra
IEEE Member
IEEE UACh Student Branch Counselor
</pre>
  </body>
</html>