Ejemplo n.º 1
0
	def form_database_tables(self, x, y, xspan, yspan):

		frame_db_tbl = tkwid.display_frame("Table à mettre à jour".decode("utf8"), x, y, xspan, yspan)

		radiobuttons_list = [("tro", "tro"), ("deb", "deb"), ("Toutes", "all")]
		configuration = "radiobuttons.config(font = \"Calibri 10\")"
		self.radiobutton_tables = tkwid.display_radiobuttons(frame_db_tbl, radiobuttons_list, configuration, x, y+1, xspan, yspan)
Ejemplo n.º 2
0
	def form_connection_parameters(self, x, y, xspan, yspan):

		frame_connparam = tkwid.display_frame("Paramètres de connexion".decode("utf8"), x, y, xspan, yspan)

		self.label_host = tkwid.display_label(frame_connparam, "Hôte :".decode("utf8"), x, y + 1, None, None)
		self.label_port = tkwid.display_label(frame_connparam, "Port :", x, y + 2, None, None)
		self.label_dbname = tkwid.display_label(frame_connparam, "Base de \ndonnées :".decode("utf8"), x, y + 3, None, None)
		self.label_user = tkwid.display_label(frame_connparam, "Utilisateur :", x, y + 4, None, None)
		self.label_password = tkwid.display_label(frame_connparam, "Mot de passe :", x, y + 5, None, None)

		self.entry_host = tkwid.display_entry(frame_connparam, config.host, x + xspan - 1, y + 1, None, None)
		self.entry_port = tkwid.display_entry(frame_connparam, config.port, x + xspan - 1, y + 2, None, None)
		self.entry_dbname = tkwid.display_entry(frame_connparam, config.dbname, x + xspan - 1, y + 3, None, None)
		self.entry_user = tkwid.display_entry(frame_connparam, config.user, x + xspan - 1, y + 4, None, None)
		self.entry_password = tkwid.display_entry(frame_connparam, config.password, x + xspan - 1, y + 5, None, None)
		self.entry_password[1].config(show = "*")