Erreur sur lien hypertexte sous win mais pas linux ?
Bonsoir,
J'ai un soucis avec cette ligne qui fonctionne sous linux mais pas sous windows.
Code:
self.label_269 = wx.HyperlinkCtrl(self, -1, "http://le-genie-climatique.positifforum.com", "http://le-genie-climatique.positifforum.com", style=wx.ALIGN_CENTRE)
Je récupère l'erreur suivante :
Code:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
| Traceback (most recent call last):
File "C:\Documents and Settings\barthe\Bureau\astugeclim_v.0.0.2\astugeclim_v.
0.0.2\astugeclim.py", line 190, in afficher_infos
frame_04 = MyFrame_a_propos(None, -1, "")
File "C:\Documents and Settings\barthe\Bureau\astugeclim_v.0.0.2\astugeclim_v.
0.0.2\gui_a_propos.py", line 49, in __init__
self.label_269 = wx.HyperlinkCtrl(self, -1, "http://le-genie-climatique.posi
tifforum.com", "http://le-genie-climatique.positifforum.com", style=wx.ALIGN_CEN
TRE)
File "C:\Python25\lib\site-packages\wx-2.8-msw-unicode\wx\_controls.py", line
6534, in __init__
_controls_.HyperlinkCtrl_swiginit(self,_controls_.new_HyperlinkCtrl(*args, *
*kwargs))
wx._core.PyAssertionError: C++ assertion "alignment == 1" failed at ..\..\src\ge
neric\hyperlink.cpp(87) in wxHyperlinkCtrl::Create(): Specify exactly one align
flag! |
Pourtant la lib wxpython est ok sous les 2 os.
Auriez-vous une piste ? pour l'instant sous win je passe en texte normal mais j'aimerais lancer le html.
Merci à tous.