[ressource xrc] LEDNumberCtrl no handler
Bonjour,
je programme une interface graphique avec xrced et j'utilise dans mon interface un afficheur à led LEDNumberCTRL
le problème est que lorsque je lance mon programme, j'ai un message d'erreur indiquant qu'il n'y a aucun handler trouvé pour la classe LEDNumberCTRL
voici mon code
Code:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22
|
import wx
from wx import xrc
import wx.gizmos as gizmos
class MyApp(wx.App):
->def OnInit(self):
->->self.res = xrc.XmlResource('interface_minimaliste.xrc')
->->self.init_frame(self.res)
->->return True
->def init_frame(self,res):
->->self.frame = self.res.LoadFrame(None, 'ID_FRAME')
->->self.panel_2 = xrc.XRCCTRL(self.frame, 'ID_PANEL2')
->->self.affiche_consigne_temperature=xrc.XRCCTRL(self.panel_2, 'ID_AFFICHE_CONSIGNE_TEMPERATURE')
->->self.frame.Show()
if __name__ == '__main__':
->app = MyApp()
->app.MainLoop() |
si quelqu'un a une idée
merci