<div dir="ltr"><div>Thanks very much. Following is the traceback message and source code.</div><div><br></div><div>=> Traceback (most recent call last):</div><div>  File "/home/20131203-Client/src/NodeConfigurator.py", line 250, in __slotSelectionChanged</div>
<div>    self.__showConfigurationPage(last_item,  0)</div><div>  File "/home/20131203-Client/src/NodeConfigurator.py", line 294, in __showConfigurationPage</div><div>    self.showConfigurationPageByName(itm)</div>
<div>  File "/home/20131203-Client/src/NodeConfigurator.py", line 345, in showConfigurationPageByName</div><div>    page.loadConfig(itm.getIDs()[0],  itm.tmpConfig)</div><div>  File "/home/20131203-Client/src/Ui/ConfigurationPages/Page_Circle.py", line 125, in loadConfig</div>
<div>    self.textLabel_Platform.setText(platform)</div><div>TypeError: QLabel.setText(QString): argument 1 has unexpected type 'NoneType'</div><div>1111fff</div><div>Circle</div><div><br></div><div>Source code:</div>
<div>/home/20131203-Client/src/Ui/ConfigurationPages/Page_Circle.py<br></div><div><br></div><div><div>def loadConfig(self, id, config = None):</div><div>        """ Load the config</div><div>        """</div>
<div>        </div><div>        platform = node.get_platform()</div></div><div>self.textLabel_Platform.setText(platform)<br></div><div><br></div><div><br></div><div>/home/20131203-Client/src/node.py<br></div><div><br></div>
<div><div>def get_platform(self):</div><div>        """ Returns node type</div><div>        """</div><div>      </div><div>        self.node.addCallback(self.get_model)</div><div>        self.node.addCallback(self.success) </div>
<div>        return self.model</div><div>        </div><div>        </div><div>    def get_model(self, object):</div><div>        model=object.callRemote("getModel")</div><div>        return model</div><div>        </div>
<div>    def success(self, model):</div><div>        print '1111fff'</div><div>        print model</div><div>        self.model=model</div><div>        return self.model</div></div><div><br></div><div><br></div></div>
<div class="gmail_extra"><br><br><div class="gmail_quote">2013/12/3 Daniel Sank <span dir="ltr"><<a href="mailto:sank.daniel@gmail.com" target="_blank">sank.daniel@gmail.com</a>></span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
The code you included in your email doesn't make sense. Please include<br>
a full working (with errors) code sample and then people can help you.<br>
<br>
Also, I _highly_ recommend that you read this:<br>
<br>
<a href="http://krondo.com/?page_id=1327" target="_blank">http://krondo.com/?page_id=1327</a><br>
<br>
It might as well be considered the official n00b intro to Twisted, imho.<br>
<br>
_______________________________________________<br>
Twisted-Python mailing list<br>
<a href="mailto:Twisted-Python@twistedmatrix.com">Twisted-Python@twistedmatrix.com</a><br>
<a href="http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python" target="_blank">http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python</a><br>
</blockquote></div><br></div>