コード例 #1
0
ファイル: cmdApp.py プロジェクト: CoSTya/TeamviewerReseter
def list_networks(filterWord=""):
	""" Prints the available networks. The function accepts
	an optional filter-word argument so that only certain
	network connections can be viewed

	 """

	networkInfo = TVR.get_networks_info(filterWord)

	# Create index numbers for the networks


	for k in networkInfo:
		print "%s - %s" % (k, networkInfo[k][0])
コード例 #2
0
	def init_ui(self):

		pnl = wx.Panel(self)

		networkInfo = TeamViewerReset.get_networks_info()
		choiceList = format_combo_choices(networkInfo)


		cb = wx.ComboBox(pnl, value=choiceList[0], choices=choiceList, 
			style=(wx.CB_READONLY|wx.CB_SORT))

		self.rb1 = wx.RadioButton(pnl, label="All", pos=(30, 30))
		self.rb2 = wx.RadioButton(pnl, label="PCI", pos=(30, 50))

		self.CreateStatusBar()

		self.Centre()
		self.Show(True)