def on_Enviar_clicked(self):
        if ((self.lineEditValor.text()=="")):
            QMessageBox.warning(self,"DarumaFramework - Qt C++","Preencha todos os Campos!")
        else:
            StrValor = self.lineEditValor.text()

            tratarRetornoDUAL(regPortaComunicacao_DUAL_DarumaFramework(StrValor), self)
Пример #2
0
 def on_Enviar_clicked(self):
     if ((self.lineEditValor.text() == "")):
         QMessageBox.warning(self, "DarumaFramework - Python/Qt",
                             "Preencha todos os Campos!")
     else:
         StrValor = self.lineEditValor.text()
         tratarRetornoDUAL(
             regLinhasGuilhotina_DUAL_DarumaFramework(StrValor), self)
    def on_pushButtonEnviar_clicked(self):
        if ((self.lineEditLocal.text()=="") or (self.lineEditTexto.text()=="") or (self.lineEditSegundos.text()=="")):
            QMessageBox.warning(self,"DarumaFramework - Python/Qt","Preencha todos os Campos!")
        else:
            Local = self.lineEditLocal.text()
            Texto = self.lineEditTexto.text()
            Segundos = self.lineEditSegundos.text()

            tratarRetornoDUAL(iAutenticarDocumento_DUAL_DarumaFramework(Texto, Local,Segundos), self)
    def on_Enviar_clicked(self):
        if ((self.lineEditValor.text() == "")):
            QMessageBox.warning(self, "DarumaFramework - Qt C++",
                                "Preencha todos os Campos!")
        else:
            StrValor = self.lineEditValor.text()

            tratarRetornoDUAL(
                regPortaComunicacao_DUAL_DarumaFramework(StrValor), self)
Пример #5
0
    def on_pushButtonEnviar_clicked(self):
        if ((self.lineEditLocal.text() == "")
                or (self.lineEditTexto.text() == "")
                or (self.lineEditSegundos.text() == "")):
            QMessageBox.warning(self, "DarumaFramework - Python/Qt",
                                "Preencha todos os Campos!")
        else:
            Local = self.lineEditLocal.text()
            Texto = self.lineEditTexto.text()
            Segundos = self.lineEditSegundos.text()

            tratarRetornoDUAL(
                iAutenticarDocumento_DUAL_DarumaFramework(
                    Texto, Local, Segundos), self)
 def on_pushButtonTesteSeparado_clicked(self):
     Texto = create_string_buffer(2000)
     iImprimirTexto_DUAL_DarumaFramework("<sn><l><ce><s>Teste com Formatação DHTM</s></ce>",0)
     Texto = ''.join([
         "<n>Estes são os carácteres que você poderá utilizar<n><l>Você poderá a qualquer monento combinar as formatações!!<l></l>",
         "<<i>><</i>> Para sinalizar Itálico<l></l>",
         "<<s>><</s>> Para sinalizar Sublinhado<l></l>",
         "<<e>><</e>> Para sinalizar Expandido<l></l>",
         "<<c>><</c>> Para sinalizar Condensado<l></l>",
         "<<n>><</n>> Para sinalizar Normal<l></l>",
         "<<l>><</l>> Para Saltar Uma Linha<l></l>",
         "<<fe>><</fe>> Ativa o Modo fonte Elite<l></l>",
         "<<b>><</b>> Para sinalizar Negrito<l></l>",
         "<<ad>><</ad>> Para alinhar a direita<l></l>",
         "<<ft>>n1,n2,...,n6<</ft>> Para habilitar tabulação<l></l>",
         "<<tb>><</tb>> Para saltar até a proxima tabulação<l></l>",
         "<<sl>>NN<</sl>> Para Saltar Várias Linhas<l></l>",
         "<<tc>>C<</tc>>Riscar Linha com Carácter Específico<l></l>",
         "<<ce>><</ce>> Para Centralizar<l></l>",
         "<<dt>><</dt>> Para Imprimir Data Atual<l></l>",
         "<<hr>><</hr>> Para Imprimir Hora Atual<l></l>",
         "<<sp>>NN<</sp>> Inserir NN Espaços em Branco<l></l>",
         "<<sn>><</sn>> Sinal Sonoro, Apitar<l></l>",
         "<<g>><</g>> Abre a Gaveta<l></l>",
         "<<a>><</a>> Aguardar até o Término da Impressão<l></l>",
         "<l><tc>_</tc><tc>_</tc><l></l>",
         "<e><ce>TABULAÇÃO</ce></e><l></l><tc>_</tc><l></l>",
         "<ft>05,10,15,20,30,40</ft><l></l>",
         "<tb>5</tb><tb>10</tb><tb>15</tb><tb>20</tb><tb>30</tb><tb>40</tb><l></l>",
         "<tb>5</tb><tb>10</tb><tb>15</tb><tb>20</tb><tb>30</tb><tb>40</tb><l></l>",
         "<tb>5</tb><tb>10</tb><tb>15</tb><tb>20</tb><tb>30</tb><tb>40</tb><l></l>",
         "<tb>5</tb><tb>10</tb><tb>15</tb><tb>20</tb><tb>30</tb><tb>40</tb><sl>02</sl>",
         "Data<tb></tb>Veiculo<tb></tb>Cor<tb></tb>Placa<tb></tb>Hora<l></l>",
         "<dt></dt><tb></tb>Golf<tb></tb><tb></tb>Branca<tb></tb>AJY5231<tb></tb>10:15<l></l>",
         "<dt></dt><tb></tb>Focus<tb></tb>Vermelha<tb></tb>APG2013<tb></tb>13:45<l></l>",
         "<dt></dt><tb></tb>Megane<tb></tb>Cinza<tb></tb>AAR5414<tb></tb>14:30<l></l>",
         "<dt></dt><tb></tb>Corsa<tb></tb>Preto<tb></tb>AWK0189<tb></tb>20:40<l></l>",
         "<l><tc>_</tc><l></l>",
         "<l></l><e>DATA:<dt></dt></e><l></l><e>Hora:<hr></hr></e><l></l><l></l>"
     ])
     iImprimirTexto_DUAL_DarumaFramework(Texto,0)
     iImprimirTexto_DUAL_DarumaFramework("<e><b>FIM BUFFER COMPLETO</b></e><sl>03</sl>", 0)
     iRetorno= iImprimirTexto_DUAL_DarumaFramework("<gui></gui>", 0)
     tratarRetornoDUAL(iRetorno, self)
    def on_Enviar_clicked(self):
        if ((self.lineEditIndice.text() == "")
                and (self.lineEditTipo.text() == "")):
            QMessageBox.warning(self, "DarumaFramework - Python/Qt",
                                "Preencha todos os Campos!")
        else:
            # Definiçao do Tamanho do Vetor de Recebimento da informação
            impressoraStatus = create_string_buffer(32)
            StrIndice = self.lineEditIndice.text()
            StrTipo = self.lineEditTipo.text()

            tratarRetornoDUAL(
                rConsultaStatusImpressora_DUAL_DarumaFramework(
                    StrIndice, StrTipo, impressoraStatus), self)

            StrStatus = impressoraStatus.decode('utf-8')

            # Devolve o retorno da DLL para o campo de texto
            QMessageBox.information(self, "DarumaFramework - Python/Qt",
                                    "Status: " + StrStatus)
 def on_pushButtonTesteCompleto_clicked(self):
     iImprimirTexto_DUAL_DarumaFramework("<e><b>BUFFER COMPLETO</e></b><l></l>",0)
     iImprimirTexto_DUAL_DarumaFramework("<e>DATA:<dt></dt></e><l></l><e>Hora:<hr></hr></e><l></l>",0)
     Texto = create_string_buffer(2000)
     Texto = ''.join([
         "<ce>Avançando 5 Linhas</ce><sl>5</sl>Inserindo<sp>10</sp>10 espaços em Branco<sl>2</sl>",
         "Formatação Normal</ce><l></l>DARUMA AUTOMAÇÃO!!<sl>2</sl><ce>Negr+Ital+Subl+Expand</ce><l></l>",
         "<b><i><s><e>DARUMA AUTOMAÇÃO!!</b></i></s></e><sl>2</sl><ce>Negr+Ital+Subl+Condensado</ce><l></l>",
         "<b><i><s><c>DARUMA AUTOMAÇÃO!!</b></i></s></c><sl>2</sl><ce>Negr+Ital+Subl+Normal</ce><l></l>",
         "<b><i><s><n>DARUMA AUTOMAÇÃO!!</b></i></s></n><sl>2</sl><ce>Expandido</ce><l></l>",
         "<e>DARUMA AUTOMAÇÃO!!</e><sl>2</sl><ce>Condensado</ce><l></l>",
         "<c>DARUMA AUTOMAÇÃO!!</c><sl>2</sl><ce>Negrito+Expandido</ce><l></l>",
         "<b><e>DARUMA AUTOMAÇÃO!!</b></e><sl>2</sl><ce>Itálico+Expandido</ce><l></l>",
         "<i><e>DARUMA AUTOMAÇÃO!!</i></e><sl>2</sl><ce>Sublinhado+Expandido</ce><l></l>",
         "<s><e>DARUMA AUTOMAÇÃO!!</s></e><sl>2</sl><ce>Negrito+Condensado</ce><l></l>",
         "<b><c>DARUMA AUTOMAÇÃO!!</b></c><sl>2</sl><ce>Itálico+Condensado</ce><l></l>",
         "<i><c>DARUMA AUTOMAÇÃO!!</i></c><sl>2</sl><ce>Sublinhado+Condensado</ce><l></l>",
         "<s><c>DARUMA AUTOMAÇÃO!!</s></c><sl>2</sl><ce>Negrito+Normal</ce><l></l>",
         "<b><n>DARUMA AUTOMAÇÃO!!</n></b><l></l>"
     ])
     iImprimirTexto_DUAL_DarumaFramework(Texto,0)
     iImprimirTexto_DUAL_DarumaFramework("<e><b>FIM BUFFER COMPLETO</b></e><sl>03</sl>", 0)
     iRetorno= iImprimirTexto_DUAL_DarumaFramework("<gui></gui>", 0)
     tratarRetornoDUAL(iRetorno, self)
 def on_Enviar_clicked(self):
     if ((self.lineEditValor.text()=="")):
         QMessageBox.warning(self,"DarumaFramework - Python/Qt","Preencha todos os Campos!")
     else:
         StrValor = self.lineEditValor.text()
         tratarRetornoDUAL(regVelocidade_DUAL_DarumaFramework(StrValor), self)
Пример #10
0
    def on_pushButtonEnviar_clicked(self):
        # Declaraçao das Variaveis que recebem os valores da UI
        StrPath = self.lineEditPath.text()

        # Chamada do Método
        tratarRetornoDUAL(iEnviarBMP_DUAL_DarumaFramework(StrPath), self)
    def on_pushButtonEnviar_clicked(self):
            StrTexto = self.TextEditTexto.toPlainText()

            tratarRetornoDUAL(iImprimirTexto_DUAL_DarumaFramework(StrTexto,0), self)
    def on_pushButtonEnviar_clicked(self):
        # Declaraçao das Variaveis que recebem os valores da UI
        StrPath = self.lineEditPath.text()

        # Chamada do Método
        tratarRetornoDUAL(iImprimirArquivo_DUAL_DarumaFramework(StrPath), self)