Beispiel #1
0
def Ploter():
    Lat_Long = []
    for i in DB.DATABASE().GET_airport():
        Lat_Long.append(i[1:4])
    Data = pandas.DataFrame(numpy.array(Lat_Long),
                            columns=['Code', 'Lat', 'Lng'])
    fig = go.Figure()
    fig.add_trace(
        go.Scattergeo(locationmode='USA-states',
                      lon=Data['Lng'],
                      lat=Data['Lat'],
                      hoverinfo='text',
                      text=Data['Code'],
                      mode='markers',
                      marker=dict(size=5, color='rgb(255, 0, 0)')))
    fig.update_layout(title_text=' Visualisation des Airoports ',
                      showlegend=True,
                      geo=dict(
                          scope='usa',
                          showland=True,
                          landcolor='rgb(0, 0, 0)',
                          countrycolor='rgb(204, 204, 204)',
                      ))
    fig.show()
    fig.write_image("plot.png")
Beispiel #2
0
 def __init__(self, fenetre, ID):
     self.window = fenetre
     self.window.geometry("500x200")
     self.window.title(' Projet GLPOO')
     self.DB = DB.DATABASE()
     self.ID = ID
     self.info = self.DB.GET_data_by_ID(self.ID)[0]
     self.Tableau()
     self.Print_Ligne()
     self.Create_BOX_Delete()
     self.Create_box_modification()
Beispiel #3
0
 def __init__(self, fenetre):
     self.window = fenetre
     self.window.geometry("400x200")
     self.window.title(' Projet GLPOO')
     self.DB = DB.DATABASE()
     self.Create_Label()
     self.Create_Box()
     self.Select()
     self.GRID()
     tk.Button(self.window, text='Insertion',
               command=self.Insertion_DB).grid(row=8,
                                               column=1,
                                               sticky=tk.W,
                                               pady=4)