Jump to content

Some ideas for ComboBox


Recommended Posts

Hi there, I just started making a select server in intrologin and I stopped at this problem, and I dont understand why what I did dosent work.

self.board = {
				"board"	: self.GetChild("board"),
				"ID"	: self.GetChild("id_editline"),
				"PW" 	: self.GetChild("pwd_editline"),
				"dropDown" 	: ui.ComboBox(),
			}
def RefreshServerComboItems(self):
		self.SERVER_COUNT = 2
		self.board["dropDown"].SetParent(self.board["board"])
		self.board["dropDown"].SetPosition(60, 280)
		self.board["dropDown"].SetSize(61, 18)
		self.board["dropDown"].SetCurrentItem(nano_interface.SERVERS_LIST_DICT[0]["name"])
		self.board["dropDown"].Show()
		self.board["dropDown"].ClearItem()
		for i in xrange(self.SERVER_COUNT):
			self.board["dropDown"].InsertItem(i, "%d - Server" % i)
			self.board["dropDown"].SetCurrentItem("%d - Server" % i)
			self.board["dropDown"].Enable()

so the problem is when I press the black slot it dosent do anything ... it should dropdown as far as I know.

Untitled.png

instead of inserting the items intro the comboBox it show the list in the lower side.

Link to comment
Share on other sites

  • Replies 0
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

Popular Days

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

Announcements



×
×
  • Create New...

Important Information

Terms of Use / Privacy Policy / Guidelines / We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.