21/06/2021, 10:53
21/06/2021, 20:31
def SubNetwork(self, event):
obj = event.GetEventObject()
self.state = obj.GetValue()
print('self.state ', self.state)
if M_G_ == M_G and Gr_ == Gr : Graph = Gr
elif M_G_ == Gr_ == G_sub : Graph = G_sub
if self.state == True:
print('N_connected_comp_netw ', FunzCalc.N_connected_comp_netw(Graph) )
if FunzCalc.N_connected_comp_netw(Graph) > 1:
ListBoxFrame(Graph).Show()
else: wx.MessageBox('The network is connected, \n i.e. has a single connected components',
'Dialog', wx.OK | wx.ICON_INFORMATION)
else:
print('Destroy')
ListBoxFrame(Graph).Destroy()
class SubFrame(wx.Frame):
def __init__(self, isPressed):
self.isPressed = isPressed
if self.isPressed == False: M_G_ = M_G ; Gr_ = Gr
else: Graph = Gr ; M_G_ = Gr_ = G_sub
Skuola.net News è una testata giornalistica iscritta al Registro degli Operatori della Comunicazione.
Registrazione: n° 20792 del 23/12/2010.
©2000—
Skuola Network s.r.l. Tutti i diritti riservati. — P.I. 10404470014.
Powered by phpBB © phpBB Group - Privacy policy - Cookie privacy
phpBB Mobile / SEO by Artodia.