コード例 #1
0
ファイル: main.py プロジェクト: prog3uip-grupo1/prog3_pfinal
    def __init__(self):
        """
            Sobre escribe el constructor de la clase FloatLayout
        """
        try:

            FloatLayout.__init__(self)
            self.ldatos.conectar()
            self.getappsettings()

            self.datos_api = SQLData(self.__django_api)
            #self.__api_success = datos_api.testapi()
            self.horario_grid.addcolumna("Codigo", "txt", "left", .15, False, 'codigo')
            self.horario_grid.addcolumna("Materia", "key", "center", .52, False, 'nombre')
            self.horario_grid.addcolumna("Dia", "txt", "left", .08, False, 'dia')
            self.horario_grid.addcolumna("Hora", "txt", "left", .15, False, 'hora')
            self.horario_grid.addcolumna("Aula", "txt", "left", .1, False, 'aula')
            self.horario_grid.addheaders()
            # self.gridTest.datasource = self.datos
#        self.gridTest.addgridrow([True, "1", "Articulo 1", "10", False])
            if not self.__is_sync or self.__carnet_sync == '':
                self.showloginform()
            else:
                self.showhorario()
        except AppMiscError as exp:
            showmessagebox(exp.title, exp.message)
コード例 #2
0
ファイル: main.py プロジェクト: mdmirabal/prog3_pfinal-1
    def __init__(self):
        try:

            FloatLayout.__init__(self)
            self.ldatos.conectar()
            self.getappsettings()

#            if not self.__is_sync:
#                self.showloginform()

            datos_api = SQLData(self.__django_api)
            # self.gridTest.addcolumna("Carnet", "txt", "left", 50, False, 'carnet')
            # self.gridTest.addcolumna("Usuario", "key", "center", 90, False, 'username')
            # self.gridTest.addcolumna("Nombre", "txt", "left", 150, False, 'first_name')
            # self.gridTest.addcolumna("Apellido", "txt", "left", 150, False, 'last_name')
            # self.gridTest.addcolumna("Email", "txt", "left", 355, False, 'email')
            # self.datos.view = "rest-auth/user"
            # self.gridTest.addheaders()
            # self.gridTest.datasource = self.datos
#        self.gridTest.addgridrow([True, "1", "Articulo 1", "10", False])
        except AppMiscError as exp:
            showmessagebox(exp.title, exp.message)
コード例 #3
0
ファイル: main.py プロジェクト: HB72K/prog3_pfinal-1
    def __init__(self):
        try:

            FloatLayout.__init__(self)
            self.ldatos.conectar()
            self.getappsettings()

            #            if not self.__is_sync:
            #                self.showloginform()

            datos_api = SQLData(self.__django_api)
            # self.gridTest.addcolumna("Carnet", "txt", "left", 50, False, 'carnet')
            # self.gridTest.addcolumna("Usuario", "key", "center", 90, False, 'username')
            # self.gridTest.addcolumna("Nombre", "txt", "left", 150, False, 'first_name')
            # self.gridTest.addcolumna("Apellido", "txt", "left", 150, False, 'last_name')
            # self.gridTest.addcolumna("Email", "txt", "left", 355, False, 'email')
            # self.datos.view = "rest-auth/user"
            # self.gridTest.addheaders()
            # self.gridTest.datasource = self.datos


#        self.gridTest.addgridrow([True, "1", "Articulo 1", "10", False])
        except AppMiscError as exp:
            showmessagebox(exp.title, exp.message)