good morning.
I had been working (discovering) wxpython for a week .
I whant to create a nex wxFrame when i have an event send by a button.
see under.
···
______________________________________________
class trianon(wxFrame):
.......
self.bouton_tri = wxButton(label = 'trier', id =
wxID_TRIANONBOUTON_TRI, parent = self, name = 'bouton_tri', size
= wxSize(80, 22), style = 0, pos = wxPoint(160, 168))
EVT_BUTTON(self.bouton_tri, wxID_TRIANONBOUTON_TRI,
self.OnBouton_triButton)
______________________________________________
i catch it with my founction.
______________________________________________
def OnBouton_triButton(self, event):
______________________________________________
I create a new wxFrame named wxframetri.py
______________________________________________
#Boa:Frame:wxframetri
from wxPython.wx import *
def create(parent):
return wxframetri(parent)
[wxID_WXFRAMETRI] = map(lambda _init_ctrls: wxNewId(), range(1))
class wxframetri(wxFrame):
def _init_utils(self):
pass
def _init_ctrls(self, prnt):
wxFrame.__init__(self, size = wxSize(640, 445), id = wxID_WXFRAMETRI, title = 'tri des fichiers resultats', parent = prnt, name = 'wxframetri', style = wxDEFAULT_FRAME_STYLE, pos = wxPoint(354, 375))
self._init_utils()
def __init__(self, parent):
self._init_ctrls(parent)
________________________________________________
but i do not be able to conect my event fron the class trianon to the new wxframetri.py.
Can someone help me, in telling how to do it or telling where i can found exemple where i will be able to solve my riddle?
Thanks for answer.
regards
Excuse me for bad english!
--
\\\|///
\\ - - //
( @ @ )
+-----------------------oOOo-(_)-oOOo--------------------+
Famy William 36 avenue des barattes 74000 Annecy France|
email:william.famy@noos.fr |
william.famy@mail-enseignant.com |
+--------------------------------Oooo--------------------+
oooO ( )
( ) ) /
\ ( (_/
\_)