示例#1
0
文件: gui.py 项目: simonstre/pyng
 def kill(self):
     result = tkMessageBox.askyesno(message='Are you sure you want to kill the submarine?', icon='question', title='Kill')
     if result == True:
         message = create_kill()
         self.communicator.write(message)
         print "Sent kill"
示例#2
0
 def kill_submarine(self):
     self.socket.write(create_kill())