Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(4)  |  Call(4)  |  Derive(0)  |  Import(0)

        def GetServerByIndex(index):
	return ServerList[ index ]
        


src/h/g/hgwin-1.0d/hgwin/taskbaricon.py   hgwin(Download)
	def OnStartStopClicked( self, event ):
		serverIndex = event.GetId() - self.ID_STARTSTOP
		server = servers.GetServerByIndex( serverIndex )
		print str(server)
		if server.IsServing():
	def OnEditClicked( self, event ):
		import newconnectiondialog
		serverIndex = event.GetId() - self.ID_EDIT
		server = servers.GetServerByIndex( serverIndex )
		if server.IsServing():
	def OnDeleteClicked( self, event ):
		serverIndex = event.GetId() - self.ID_DELETE
		server = servers.GetServerByIndex( serverIndex )
		servers.RemoveServerByName( server.Name )
 
	def OnCopyClicked( self, event ):
		import socket
		serverIndex = event.GetId() - self.ID_COPY
		server = servers.GetServerByIndex( serverIndex )
		urlstring = "http://%s:%d/hg" % ( socket.gethostname(), server.Port )