Exemplo n.º 1
0
    def Create_box_modification(self):
        sev = DB.Convert_Data(self.DB.GET_severity())
        typ = DB.Convert_Data(self.DB.GET_type())
        tim = DB.Convert_Data(self.DB.GET_timezone())
        air = DB.Convert_Data(self.DB.GET_airport())

        self.StartTime = tk.Entry(self.window)
        self.EndTime = tk.Entry(self.window)
        self.col_severity = ttk.Combobox(self.window, values=sev)
        self.col_typ = ttk.Combobox(self.window, values=typ)
        self.col_tim = ttk.Combobox(self.window, values=tim)
        self.col_air = ttk.Combobox(self.window, values=air)

        self.StartTime.insert(0, str(self.info[0]))
        self.EndTime.insert(0, str(self.info[1]))
        self.col_severity.current(int(self.info[6]))
        self.col_typ.current(int(self.info[7]))
        self.col_tim.current(int(self.info[8]))
        self.col_air.current(int(self.info[9]))

        self.StartTime.grid(row=1, column=2)
        self.EndTime.grid(row=2, column=2)
        self.col_tim.grid(row=3, column=2)
        self.col_severity.grid(row=4, column=2)
        self.col_typ.grid(row=5, column=2)
        self.col_air.grid(row=6, column=2)
        tk.Button(self.window, text='Modification',
                  command=self.MODIFY).grid(row=8,
                                            column=1,
                                            sticky=tk.W,
                                            pady=4)
Exemplo n.º 2
0
 def Create_Box(self):
     # Import Data Categorie
     sev = DB.Convert_Data(self.DB.GET_severity())
     typ = DB.Convert_Data(self.DB.GET_type())
     tim = DB.Convert_Data(self.DB.GET_timezone())
     air = DB.Convert_Data(self.DB.GET_airport())
     # Create Boxes
     self.StartTime = tk.Entry(self.window)
     self.EndTime = tk.Entry(self.window)
     self.col_severity = ttk.Combobox(self.window, values=sev)
     self.col_typ = ttk.Combobox(self.window, values=typ)
     self.col_tim = ttk.Combobox(self.window, values=tim)
     self.col_air = ttk.Combobox(self.window, values=air)