Beispiel #1
0
def default_launch():
    access_to_network = main.check_access_to_network()
    last_version = [0, False]
    if (access_to_network is True):
        last_version = main.check_last_compilation(main.programID)
    main.formulaire_main(access_to_network, last_version)
Beispiel #2
0
        padx=10,
        pady=1,
        width=15)
    call4help.pack()

    cancel = tk.Button(cadre_valider,
                       bg=couleur_fond,
                       text="Annuler",
                       command=lambda: main.annuler(form),
                       padx=10,
                       pady=1,
                       width=15)
    cancel.pack()

    tk.Label(zone_notes,
             text="Version " + str(main.version) + " - " + lastupdate,
             bg=couleur_fond).pack()
    """if (main.last_version[1] == True):
        download_update = tk.Button(zone_notes, text = "Télécharger la version " + str(main.last_version[0]), command=download_last_update)
        download_update.pack()"""

    tk.mainloop()


if __name__ == '__main__':
    access_to_network = main.check_access_to_network()
    #if(access_to_network is True):
    #    last_version = main.check_last_compilation(programID)
    main.formulaire_main(access_to_network, last_version)
    #formulaire_marc2tables(access_to_network,last_version)