<span>I have a small</span> <span>problem in defining/calling</span> <span>an external method</span> <span>in my application.</span><br><div>
<div dir="ltr" style="zoom:1"><span lang="en"><span>I have 3</span> <span>files,</span> <span>mainapp.py</span><span>,</span> <span>qscintilla.py</span> <span>and</span> <span>settings.py</span><br>
<span><br>in mainapp.py</span><span>:</span><br><br><span>from</span> <span>qscintilla</span> <span>import</span> <span>sciEditor</span><br><span>from</span> <span>settings</span> <span>import</span> <span>dialog</span><br>
<br><span>in setting.py</span><span> (settings dialog):</span><br><br><span>from</span> <span>qscintilla</span> <span>import</span> <span>sciEditor<br><br>in qscintilla.py:<br><br>scintilla instances stuff<br></span><br>
<span>the strange thing is</span> <span>that I can not</span> <span>call a method</span> of sciEditor <span>from</span> <span>setting</span> dialog which has Qscintilla instance!!<span></span><br>
<span><br></span></span><span lang="en"><span>I try to</span> <span>be clearer:</span><br><br><span>For example, in my </span> <span>sciEditor</span> class <span>I have these</span> <span>methods:</span><br>
<br><span>def</span> <span>method1 (</span><span>self):</span><br> <span>print "</span><span>Hello"</span><br><br><span>def</span> <span>method2 (</span><span>self):</span><br>
<span>self.SendScintilla</span> <span>(</span><span>QsciScintilla.SCI_CLEARALL</span><span>)</span><br> <span>self.setText</span> <span>(</span><span>"Hello")</span><br>
<br><span>calling</span> <span>the first method from settings dialog</span> <span>works, the latter</span> <span>not!</span></span><br><span lang="en"><span><br>
</span></span><span id="result_box" class="short_text" lang="en"><span class="hps">maybe I'm</span> <span class="hps">missing something!!!<br><br></span></span><span lang="en"><span>Any suggest is appreciate !<br><br>
<br>All the best!<br><br>-SL<br></span></span></div></div><br clear="all"><br>-- <br>Salvatore Larosa<br>linkedIn: <a href="http://linkedin.com/in/larosasalvatore" target="_blank">http://linkedin.com/in/larosasalvatore</a><br>
twitter: @lrssvt<br>skype: s.larosa<br>IRC: lrssvt on freenode<br><br>