How to use setSize method in fMBT

Best Python code snippet using fMBT_python

frmCadLivros.py

Source:frmCadLivros.py Github

copy

Full Screen

1# generated by wxGlade 0.3.1 on Mon Dec 27 07:02:32 20042from wxPython.wx import *3# begin wxGlade: dependencies4# end wxGlade5class frmCadLivros(wxPanel):6 def __init__(self, *args, **kwds):7 # begin wxGlade: frmCadLivros.__init__8 kwds["style"] = wxTAB_TRAVERSAL9 wxPanel.__init__(self, *args, **kwds)10 self.labCodigo = wxStaticText(self, ID_FRMCADASTROS_LABCODIGO, "ISBN:")11 self.edtCodigo = wxTextCtrl(self, ID_FRMCADASTROS_EDTCODIGO, "")12 self.btnNovo = wxButton(self, ID_FRMCADASTROS_BTNNOVO, "&Novo")13 self.labDescricao = wxStaticText(self, ID_FRMCADASTROS_LABDESCRICAO, "Título:")14 self.edtDescricao = wxTextCtrl(self, ID_FRMCADASTROS_EDTDESCRICAO, "")15 self.labEdicao = wxStaticText(self, ID_FRMCADLIVROS_LABEDICAO, "Edição:")16 self.edtEdicao = wxSpinCtrl(self, ID_FRMCADLIVROS_EDTEDICAO, "1", min=1, max=9999, style=wxSP_ARROW_KEYS)17 self.labAnoPubli = wxStaticText(self, ID_FRMCADLIVROS_LABANOPUBLI, "Ano Publicação:")18 self.edtAnoPubli = wxSpinCtrl(self, ID_FRMCADLIVROS_EDTANOPUBLI, "1", min=1, max=9999, style=wxSP_ARROW_KEYS)19 self.labEditora = wxStaticText(self, ID_FRMCADLIVROS_LABEDITORA, "Editora:")20 self.edtCodEditora = wxTextCtrl(self, ID_FRMCADLIVROS_EDTCODEDITORA, "")21 self.edtEditora = wxTextCtrl(self, ID_FRMCADLIVROS_EDTEDITORA, "")22 self.btnPEditora = wxButton(self, ID_FRMCADLIVROS_BTNPEDITORA, "...")23 self.labVolume = wxStaticText(self, ID_FRMCADLIVROS_LABVOLUME, "Volume:")24 self.edtVolume = wxSpinCtrl(self, ID_FRMCADLIVROS_EDTVOLUME, "1", min=1, max=9999, style=wxSP_ARROW_KEYS)25 self.labIdioma = wxStaticText(self, ID_FRMCADLIVROS_LABIDIOMA, "Idioma: ")26 self.cmbIdioma = wxChoice(self, ID_FRMCADLIVROS_CMBIDIOMA, choices=["choice 1"])27 self.labNPaginas = wxStaticText(self, ID_FRMCADLIVROS_LABNPAGINAS, "Nº Páginas: ")28 self.edtNPaginas = wxSpinCtrl(self, ID_FRMCADLIVROS_EDTNPAGINAS, "1", min=1, max=9999, style=wxSP_ARROW_KEYS)29 self.labAssunto = wxStaticText(self, ID_FRMCADLIVROS_LABASSUNTO, "Assunto: ")30 self.edtCodAssunto = wxTextCtrl(self, ID_FRMCADLIVROS_EDTCODASSUNTO, "")31 self.edtAssunto = wxTextCtrl(self, ID_FRMCADLIVROS_EDTASSUNTO, "")32 self.btnAdAssuntos = wxButton(self, ID_FRMCADLIVROS_BTNADASSUNTOS, "+")33 self.btnPAssunto = wxButton(self, ID_FRMCADLIVROS_BTNPASSUNTO, "...")34 self.labPreco = wxStaticText(self, ID_FRMCADLIVROS_LABPRECO, "Preço: ")35 self.edtPreco = wxTextCtrl(self, ID_FRMCADLIVROS_EDTPRECO, "")36 self.lstAssuntos = wxListBox(self, ID_FRMCADLIVROS_LSTASSUNTOS, choices=["choice 1"])37 self.labQtdEstoque = wxStaticText(self, ID_FRMCADLIVROS_LABQTDESTOQUE, "Qtd. Estoque: ")38 self.edtQtdEstoque = wxSpinCtrl(self, ID_FRMCADLIVROS_EDTQTDESTOQUE, "0", min=0, max=9999, style=wxSP_ARROW_KEYS)39 self.labAutor = wxStaticText(self, ID_FRMCADLIVROS_LABAUTOR, "Autor: ")40 self.edtCodAutor = wxTextCtrl(self, ID_FRMCADLIVROS_EDTCODAUTOR, "")41 self.edtAutor = wxTextCtrl(self, ID_FRMCADLIVROS_EDTAUTOR, "")42 self.btnAdAutores = wxButton(self, ID_FRMCADLIVROS_BTNADAUTORES, "+")43 self.btnPAutor = wxButton(self, ID_FRMCADLIVROS_BTNPAUTOR, "...")44 self.lstAutores = wxListBox(self, ID_FRMCADLIVROS_LSTAUTORES, choices=["choice 1"])45 self.btnPesquisar = wxButton(self, ID_FRMCADASTROS_BTNPESQUISAR, "&Pesquisar")46 self.btnAnterior = wxButton(self, ID_FRMCADASTROS_BTNANTERIOR, "&Anterior")47 self.btnProximo = wxButton(self, ID_FRMCADASTROS_BTNPROXIMO, "Próxi&mo")48 self.btnSalvar = wxButton(self, ID_FRMCADASTROS_BTNSALVAR, "&Salvar")49 self.btnExcluir = wxButton(self, ID_FRMCADASTROS_BTNEXCLUIR, "&Excluir")50 self.btnLimpar = wxButton(self, ID_FRMCADASTROS_BTNLIMPAR, "&Limpar")51 self.btnFechar = wxButton(self, ID_FRMCADASTROS_BTNFECHAR, "&Fechar")52 self.__set_properties()53 self.__do_layout()54 # end wxGlade55 def __set_properties(self):56 # begin wxGlade: frmCadLivros.__set_properties57 self.SetSize((513, 434))58 self.labCodigo.SetSize((36, 13))59 self.edtCodigo.SetSize((121, 21))60 self.btnNovo.SetSize((75, 25))61 self.labDescricao.SetSize((57, 13))62 self.edtDescricao.SetSize((312, 21))63 self.edtDescricao.Enable(0)64 self.labEdicao.SetSize((48, 13))65 self.edtEdicao.SetSize((92, 21))66 self.edtEdicao.Enable(0)67 self.labAnoPubli.SetSize((81, 13))68 self.edtAnoPubli.SetSize((92, 21))69 self.edtAnoPubli.Enable(0)70 self.labEditora.SetSize((39, 13))71 self.edtCodEditora.SetSize((78, 21))72 self.edtCodEditora.Enable(0)73 self.edtEditora.SetSize((216, 21))74 self.edtEditora.Enable(0)75 self.btnPEditora.SetSize((21, 21))76 self.btnPEditora.Enable(0)77 self.edtVolume.SetSize((92, 21))78 self.edtVolume.Enable(0)79 self.cmbIdioma.SetSize((320, 21))80 self.cmbIdioma.Enable(0)81 self.cmbIdioma.SetSelection(0)82 self.edtNPaginas.SetSize((92, 21))83 self.edtNPaginas.Enable(0)84 self.edtCodAssunto.SetSize((78, 21))85 self.edtCodAssunto.Enable(0)86 self.edtAssunto.SetSize((192, 21))87 self.edtAssunto.Enable(0)88 self.btnAdAssuntos.SetSize((21, 21))89 self.btnAdAssuntos.Enable(0)90 self.btnPAssunto.SetSize((21, 21))91 self.btnPAssunto.Enable(0)92 self.edtPreco.SetSize((92, 21))93 self.edtPreco.Enable(0)94 self.lstAssuntos.SetSize((320, 48))95 self.lstAssuntos.Enable(0)96 self.lstAssuntos.SetSelection(0)97 self.edtQtdEstoque.SetSize((92, 21))98 self.edtQtdEstoque.Enable(0)99 self.edtCodAutor.SetSize((78, 21))100 self.edtCodAutor.Enable(0)101 self.edtAutor.SetSize((192, 21))102 self.edtAutor.Enable(0)103 self.btnAdAutores.SetSize((21, 21))104 self.btnAdAutores.Enable(0)105 self.btnPAutor.SetSize((21, 21))106 self.btnPAutor.Enable(0)107 self.lstAutores.SetSize((320, 48))108 self.lstAutores.Enable(0)109 self.lstAutores.SetSelection(0)110 self.btnPesquisar.SetSize((75, 25))111 self.btnAnterior.SetSize((75, 25))112 self.btnAnterior.Enable(0)113 self.btnProximo.SetSize((75, 25))114 self.btnProximo.Enable(0)115 self.btnSalvar.SetSize((75, 25))116 self.btnSalvar.Enable(0)117 self.btnExcluir.SetSize((75, 25))118 self.btnExcluir.Enable(0)119 self.btnLimpar.SetSize((75, 25))120 self.btnFechar.SetSize((75, 25))121 # end wxGlade122 def __do_layout(self):123 # begin wxGlade: frmCadLivros.__do_layout124 sizer_1 = wxBoxSizer(wxVERTICAL)125 sizer_2 = wxBoxSizer(wxHORIZONTAL)126 sizer_3 = wxBoxSizer(wxHORIZONTAL)127 sizer_4 = wxBoxSizer(wxVERTICAL)128 sizer_5 = wxBoxSizer(wxVERTICAL)129 sizer_21 = wxBoxSizer(wxHORIZONTAL)130 sizer_20 = wxBoxSizer(wxHORIZONTAL)131 grid_sizer_37 = wxGridSizer(2, 1, 0, 0)132 grid_sizer_36 = wxGridSizer(2, 1, 0, 0)133 grid_sizer_35 = wxGridSizer(2, 1, 0, 0)134 grid_sizer_34 = wxGridSizer(2, 1, 0, 0)135 grid_sizer_33 = wxGridSizer(2, 1, 0, 0)136 sizer_19 = wxBoxSizer(wxHORIZONTAL)137 grid_sizer_32 = wxGridSizer(2, 1, 0, 0)138 sizer_18 = wxBoxSizer(wxHORIZONTAL)139 grid_sizer_31 = wxGridSizer(2, 1, 0, 0)140 grid_sizer_30 = wxGridSizer(2, 1, 0, 0)141 grid_sizer_29 = wxGridSizer(2, 1, 0, 0)142 grid_sizer_28 = wxGridSizer(2, 1, 0, 0)143 grid_sizer_27 = wxGridSizer(2, 1, 0, 0)144 sizer_17 = wxBoxSizer(wxHORIZONTAL)145 grid_sizer_26 = wxGridSizer(2, 1, 0, 0)146 grid_sizer_25 = wxGridSizer(2, 1, 0, 0)147 sizer_6 = wxBoxSizer(wxHORIZONTAL)148 grid_sizer_24 = wxGridSizer(2, 1, 0, 0)149 grid_sizer_6 = wxGridSizer(2, 1, 0, 0)150 grid_sizer_5 = wxGridSizer(2, 1, 0, 0)151 grid_sizer_4 = wxGridSizer(2, 1, 0, 0)152 sizer_8 = wxBoxSizer(wxHORIZONTAL)153 grid_sizer_9 = wxGridSizer(2, 1, 0, 0)154 grid_sizer_8 = wxGridSizer(2, 1, 0, 0)155 sizer_7 = wxBoxSizer(wxHORIZONTAL)156 grid_sizer_7 = wxGridSizer(2, 1, 0, 0)157 grid_sizer_7.Add(self.labCodigo, 0, wxALIGN_BOTTOM, 0)158 grid_sizer_7.Add(self.edtCodigo, 0, 0, 0)159 sizer_7.Add(grid_sizer_7, 0, 0, 0)160 sizer_7.Add(self.btnNovo, 0, wxLEFT|wxALIGN_BOTTOM, 5)161 sizer_5.Add(sizer_7, 1, 0, 0)162 grid_sizer_8.Add(self.labDescricao, 0, wxALIGN_BOTTOM, 0)163 grid_sizer_8.Add(self.edtDescricao, 0, 0, 0)164 sizer_8.Add(grid_sizer_8, 0, 0, 0)165 grid_sizer_9.Add(self.labEdicao, 0, wxALIGN_BOTTOM, 0)166 grid_sizer_9.Add(self.edtEdicao, 0, 0, 0)167 sizer_8.Add(grid_sizer_9, 0, wxLEFT, 2)168 sizer_5.Add(sizer_8, 1, wxEXPAND, 0)169 grid_sizer_4.Add(self.labAnoPubli, 0, wxALIGN_BOTTOM, 0)170 grid_sizer_4.Add(self.edtAnoPubli, 0, 0, 0)171 sizer_6.Add(grid_sizer_4, 0, 0, 0)172 grid_sizer_5.Add(self.labEditora, 0, wxALIGN_BOTTOM, 0)173 grid_sizer_5.Add(self.edtCodEditora, 0, 0, 0)174 sizer_6.Add(grid_sizer_5, 0, wxLEFT, 4)175 grid_sizer_6.Add(20, 20, 0, 0, 0)176 grid_sizer_6.Add(self.edtEditora, 0, 0, 0)177 sizer_6.Add(grid_sizer_6, 0, wxLEFT, 2)178 grid_sizer_24.Add(20, 20, 0, 0, 0)179 grid_sizer_24.Add(self.btnPEditora, 0, 0, 0)180 sizer_6.Add(grid_sizer_24, 0, 0, 0)181 sizer_5.Add(sizer_6, 0, 0, 0)182 grid_sizer_25.Add(self.labVolume, 0, wxALIGN_BOTTOM, 0)183 grid_sizer_25.Add(self.edtVolume, 0, 0, 0)184 sizer_17.Add(grid_sizer_25, 0, wxEXPAND, 0)185 grid_sizer_26.Add(self.labIdioma, 0, wxALIGN_BOTTOM, 0)186 grid_sizer_26.Add(self.cmbIdioma, 0, 0, 0)187 sizer_17.Add(grid_sizer_26, 0, wxLEFT|wxEXPAND, 4)188 sizer_5.Add(sizer_17, 1, 0, 0)189 grid_sizer_27.Add(self.labNPaginas, 0, wxALIGN_BOTTOM, 0)190 grid_sizer_27.Add(self.edtNPaginas, 0, 0, 0)191 sizer_18.Add(grid_sizer_27, 0, 0, 0)192 grid_sizer_28.Add(self.labAssunto, 0, wxALIGN_BOTTOM, 0)193 grid_sizer_28.Add(self.edtCodAssunto, 0, 0, 0)194 sizer_18.Add(grid_sizer_28, 0, wxLEFT, 4)195 grid_sizer_29.Add(20, 20, 0, 0, 0)196 grid_sizer_29.Add(self.edtAssunto, 0, 0, 0)197 sizer_18.Add(grid_sizer_29, 0, wxLEFT, 2)198 grid_sizer_30.Add(20, 20, 0, 0, 0)199 grid_sizer_30.Add(self.btnAdAssuntos, 0, 0, 0)200 sizer_18.Add(grid_sizer_30, 0, 0, 0)201 grid_sizer_31.Add(20, 20, 0, 0, 0)202 grid_sizer_31.Add(self.btnPAssunto, 0, 0, 0)203 sizer_18.Add(grid_sizer_31, 0, 0, 0)204 sizer_5.Add(sizer_18, 1, 0, 0)205 grid_sizer_32.Add(self.labPreco, 0, wxALIGN_BOTTOM, 0)206 grid_sizer_32.Add(self.edtPreco, 0, 0, 0)207 sizer_19.Add(grid_sizer_32, 0, 0, 0)208 sizer_19.Add(self.lstAssuntos, 0, wxLEFT, 4)209 sizer_5.Add(sizer_19, 1, 0, 0)210 grid_sizer_33.Add(self.labQtdEstoque, 0, wxALIGN_BOTTOM, 0)211 grid_sizer_33.Add(self.edtQtdEstoque, 0, 0, 0)212 sizer_20.Add(grid_sizer_33, 0, 0, 0)213 grid_sizer_34.Add(self.labAutor, 0, wxALIGN_BOTTOM, 0)214 grid_sizer_34.Add(self.edtCodAutor, 0, 0, 0)215 sizer_20.Add(grid_sizer_34, 0, 0, 0)216 grid_sizer_35.Add(20, 20, 0, 0, 0)217 grid_sizer_35.Add(self.edtAutor, 0, 0, 0)218 sizer_20.Add(grid_sizer_35, 0, wxLEFT, 2)219 grid_sizer_36.Add(20, 20, 0, 0, 0)220 grid_sizer_36.Add(self.btnAdAutores, 0, 0, 0)221 sizer_20.Add(grid_sizer_36, 0, 0, 0)222 grid_sizer_37.Add(20, 20, 0, 0, 0)223 grid_sizer_37.Add(self.btnPAutor, 0, 0, 0)224 sizer_20.Add(grid_sizer_37, 0, 0, 0)225 sizer_5.Add(sizer_20, 1, 0, 0)226 sizer_21.Add(92, 20, 0, 0, 0)227 sizer_21.Add(self.lstAutores, 0, 0, 0)228 sizer_5.Add(sizer_21, 0, 0, 0)229 sizer_3.Add(sizer_5, 0, 0, 0)230 sizer_4.Add(self.btnPesquisar, 0, wxALL|wxALIGN_RIGHT, 2)231 sizer_4.Add(self.btnAnterior, 0, wxALL|wxALIGN_RIGHT, 2)232 sizer_4.Add(self.btnProximo, 0, wxALL|wxALIGN_RIGHT, 2)233 sizer_3.Add(sizer_4, 1, 0, 0)234 sizer_1.Add(sizer_3, 1, wxALL|wxEXPAND, 4)235 sizer_2.Add(self.btnSalvar, 0, wxALL|wxALIGN_RIGHT|wxALIGN_BOTTOM, 2)236 sizer_2.Add(self.btnExcluir, 0, wxALL|wxALIGN_RIGHT|wxALIGN_BOTTOM, 2)237 sizer_2.Add(self.btnLimpar, 0, wxALL|wxALIGN_RIGHT|wxALIGN_BOTTOM, 2)238 sizer_2.Add(self.btnFechar, 0, wxALL|wxALIGN_RIGHT|wxALIGN_BOTTOM, 2)239 sizer_1.Add(sizer_2, 0, wxRIGHT|wxBOTTOM|wxALIGN_RIGHT|wxALIGN_BOTTOM, 4)240 self.SetAutoLayout(1)241 self.SetSizer(sizer_1)242 # end wxGlade...

Full Screen

Full Screen

frmCadClientes.py

Source:frmCadClientes.py Github

copy

Full Screen

1# generated by wxGlade 0.3.1 on Mon Dec 27 07:02:32 20042from wxPython.wx import *3# begin wxGlade: dependencies4# end wxGlade5class frmCadClientes(wxPanel):6 def __init__(self, *args, **kwds):7 # begin wxGlade: frmCadClientes.__init__8 kwds["style"] = wxTAB_TRAVERSAL9 wxPanel.__init__(self, *args, **kwds)10 self.labCodigo = wxStaticText(self, ID_FRMCADASTROS_LABCODIGO, "Código:")11 self.edtCodigo = wxTextCtrl(self, ID_FRMCADASTROS_EDTCODIGO, "")12 self.btnNovo = wxButton(self, ID_FRMCADASTROS_BTNNOVO, "&Novo")13 self.labDescricao = wxStaticText(self, ID_FRMCADASTROS_LABDESCRICAO, "Logradouro: ")14 self.edtDescricao = wxTextCtrl(self, ID_FRMCADASTROS_EDTDESCRICAO, "")15 self.labEmail = wxStaticText(self, ID_FRMCADCLIENTES_LABEMAIL, "E-mail:")16 self.edtEmail = wxTextCtrl(self, ID_FRMCADCLIENTES_EDTEMAIL, "")17 self.labIdentidade = wxStaticText(self, ID_FRMCADCLIENTES_LABIDENTIDADE, "Identidade: ")18 self.edtIdentidade = wxTextCtrl(self, ID_FRMCADCLIENTES_EDTIDENTIDADE, "")19 self.rbSexo = wxRadioBox(self, ID_FRMCADCLIENTES_RBSEXO, "Sexo", choices=["Masculino", "Feminino"], majorDimension=2, style=wxRA_SPECIFY_COLS)20 self.labTelefone = wxStaticText(self, ID_FRMCADCLIENTES_LABTELEFONE, "Telefone: ")21 self.edtTelefone = wxTextCtrl(self, ID_FRMCADCLIENTES_EDTTELEFONE, "")22 self.labDtNasc = wxStaticText(self, ID_FRMCADCLIENTES_LABDTNASC, "Dt. Nascimento")23 self.edtDtNasc = wxTextCtrl(self, ID_FRMCADCLIENTES_EDTDTNASC, "")24 self.edtCodEndereco = wxTextCtrl(self, ID_FRMCADCLIENTES_EDTCODENDERECO, "")25 self.btnPEndereco = wxButton(self, ID_FRMCADCLIENTES_BTNPENDERECO, "...")26 self.labLogradouro = wxStaticText(self, ID_FRMCADCLIENTES_LABLOGRADOURO, "Logradouro: ")27 self.edtLogradouro = wxTextCtrl(self, ID_FRMCADCLIENTES_EDTLOGRADOURO, "")28 self.labBairro = wxStaticText(self, ID_FRMCADCLIENTES_LABBAIRRO, "Bairro:")29 self.edtBairro = wxTextCtrl(self, ID_FRMCADCLIENTES_EDTBAIRRO, "")30 self.labCEP = wxStaticText(self, ID_FRMCADCLIENTES_LABCEP, "CEP:")31 self.edtCEP = wxTextCtrl(self, ID_FRMCADCLIENTES_EDTCEP, "")32 self.labCidade = wxStaticText(self, ID_FRMCADCLIENTES_LABCIDADE, "Cidade: ")33 self.edtCidade = wxTextCtrl(self, ID_FRMCADCLIENTES_EDTCIDADE, "")34 self.labEstado = wxStaticText(self, ID_FRMCADCLIENTES_LABESTADO, "Estado: ")35 self.edtEstado = wxTextCtrl(self, ID_FRMCADCLIENTES_EDTESTADO, "")36 self.labPais = wxStaticText(self, ID_FRMCADCLIENTES_LABPAIS, "País de origem: ")37 self.edtCodPais = wxTextCtrl(self, ID_FRMCADCLIENTES_EDTCODPAIS, "")38 self.edtPais = wxTextCtrl(self, ID_FRMCADCLIENTES_EDTPAIS, "")39 self.btnPPais = wxButton(self, ID_FRMCADCLIENTES_BTNPPAIS, "...")40 self.labProfissao = wxStaticText(self, ID_FRMCADCLIENTES_LABPROFISSAO, "Profissão: ")41 self.edtCodProfissao = wxTextCtrl(self, ID_FRMCADCLIENTES_EDTCODPROFISSAO, "")42 self.edtProfissao = wxTextCtrl(self, ID_FRMCADCLIENTES_EDTPROFISSAO, "")43 self.btnPProfissao = wxButton(self, ID_FRMCADCLIENTES_BTNPPROFISSAO, "...")44 self.btnPesquisar = wxButton(self, ID_FRMCADASTROS_BTNPESQUISAR, "&Pesquisar")45 self.btnAnterior = wxButton(self, ID_FRMCADASTROS_BTNANTERIOR, "&Anterior")46 self.btnProximo = wxButton(self, ID_FRMCADASTROS_BTNPROXIMO, "Próxi&mo")47 self.btnSalvar = wxButton(self, ID_FRMCADASTROS_BTNSALVAR, "&Salvar")48 self.btnExcluir = wxButton(self, ID_FRMCADASTROS_BTNEXCLUIR, "&Excluir")49 self.btnLimpar = wxButton(self, ID_FRMCADASTROS_BTNLIMPAR, "&Limpar")50 self.btnFechar = wxButton(self, ID_FRMCADASTROS_BTNFECHAR, "&Fechar")51 self.__set_properties()52 self.__do_layout()53 # end wxGlade54 def __set_properties(self):55 # begin wxGlade: frmCadClientes.__set_properties56 self.labCodigo.SetSize((36, 13))57 self.edtCodigo.SetSize((121, 21))58 self.btnNovo.SetSize((75, 25))59 self.labDescricao.SetSize((57, 13))60 self.edtDescricao.SetSize((264, 21))61 self.edtDescricao.Enable(0)62 self.labEmail.SetSize((40, 13))63 self.edtEmail.SetSize((312, 21))64 self.edtEmail.Enable(0)65 self.edtIdentidade.SetSize((100, 21))66 self.edtIdentidade.Enable(0)67 self.rbSexo.SetSize((200, 44))68 self.rbSexo.Enable(0)69 self.rbSexo.SetSelection(0)70 self.labTelefone.SetSize((48, 13))71 self.edtTelefone.SetSize((104, 21))72 self.edtTelefone.Enable(0)73 self.labDtNasc.SetSize((73, 13))74 self.edtDtNasc.SetSize((100, 21))75 self.edtDtNasc.Enable(0)76 self.edtCodEndereco.SetSize((88, 21))77 self.edtCodEndereco.Enable(0)78 self.btnPEndereco.SetSize((21, 21))79 self.btnPEndereco.Enable(0)80 self.edtLogradouro.SetSize((264, 21))81 self.edtLogradouro.Enable(0)82 self.labBairro.SetSize((48, 13))83 self.edtBairro.SetSize((144, 21))84 self.edtBairro.Enable(0)85 self.labCEP.SetSize((40, 13))86 self.edtCEP.SetSize((78, 21))87 self.edtCEP.Enable(0)88 self.edtCidade.SetSize((184, 21))89 self.edtCidade.Enable(0)90 self.edtEstado.SetSize((144, 21))91 self.edtEstado.Enable(0)92 self.edtCodPais.SetSize((78, 21))93 self.edtCodPais.Enable(0)94 self.edtPais.SetSize((240, 21))95 self.edtPais.Enable(0)96 self.btnPPais.SetSize((21, 21))97 self.btnPPais.Enable(0)98 self.edtCodProfissao.SetSize((78, 21))99 self.edtCodProfissao.Enable(0)100 self.edtProfissao.SetSize((240, 21))101 self.edtProfissao.Enable(0)102 self.btnPProfissao.SetSize((21, 21))103 self.btnPProfissao.Enable(0)104 self.btnPesquisar.SetSize((75, 25))105 self.btnAnterior.SetSize((75, 25))106 self.btnAnterior.Enable(0)107 self.btnProximo.SetSize((75, 25))108 self.btnProximo.Enable(0)109 self.btnSalvar.SetSize((75, 25))110 self.btnSalvar.Enable(0)111 self.btnExcluir.SetSize((75, 25))112 self.btnExcluir.Enable(0)113 self.btnLimpar.SetSize((75, 25))114 self.btnFechar.SetSize((75, 25))115 # end wxGlade116 def __do_layout(self):117 # begin wxGlade: frmCadClientes.__do_layout118 sizer_1 = wxBoxSizer(wxVERTICAL)119 sizer_2 = wxBoxSizer(wxHORIZONTAL)120 sizer_3 = wxBoxSizer(wxHORIZONTAL)121 sizer_4 = wxBoxSizer(wxVERTICAL)122 sizer_5 = wxBoxSizer(wxVERTICAL)123 sizer_16 = wxBoxSizer(wxHORIZONTAL)124 grid_sizer_23 = wxGridSizer(2, 1, 0, 0)125 grid_sizer_22 = wxGridSizer(2, 1, 0, 0)126 grid_sizer_19 = wxGridSizer(2, 1, 0, 0)127 sizer_15 = wxBoxSizer(wxHORIZONTAL)128 grid_sizer_21 = wxGridSizer(2, 1, 0, 0)129 grid_sizer_20 = wxGridSizer(2, 1, 0, 0)130 grid_sizer_18 = wxGridSizer(2, 1, 0, 0)131 sizer_11 = wxStaticBoxSizer(wxStaticBox(self, -1, "Endereço"), wxVERTICAL)132 sizer_14 = wxBoxSizer(wxHORIZONTAL)133 grid_sizer_17 = wxGridSizer(2, 1, 0, 0)134 grid_sizer_16 = wxGridSizer(2, 1, 0, 0)135 grid_sizer_15 = wxGridSizer(2, 1, 0, 0)136 sizer_13 = wxBoxSizer(wxHORIZONTAL)137 grid_sizer_14 = wxGridSizer(2, 1, 0, 0)138 grid_sizer_13 = wxGridSizer(2, 1, 0, 0)139 sizer_12 = wxBoxSizer(wxHORIZONTAL)140 sizer_10 = wxBoxSizer(wxHORIZONTAL)141 grid_sizer_12 = wxGridSizer(2, 1, 0, 0)142 grid_sizer_11 = wxGridSizer(2, 1, 0, 0)143 sizer_6 = wxBoxSizer(wxHORIZONTAL)144 grid_sizer_5 = wxGridSizer(2, 1, 0, 0)145 grid_sizer_4 = wxGridSizer(2, 1, 0, 0)146 sizer_8 = wxBoxSizer(wxHORIZONTAL)147 grid_sizer_8 = wxGridSizer(2, 1, 0, 0)148 sizer_7 = wxBoxSizer(wxHORIZONTAL)149 grid_sizer_7 = wxGridSizer(2, 1, 0, 0)150 grid_sizer_7.Add(self.labCodigo, 0, wxALIGN_BOTTOM, 0)151 grid_sizer_7.Add(self.edtCodigo, 0, 0, 0)152 sizer_7.Add(grid_sizer_7, 0, 0, 0)153 sizer_7.Add(self.btnNovo, 0, wxLEFT|wxALIGN_BOTTOM, 5)154 sizer_5.Add(sizer_7, 1, 0, 0)155 grid_sizer_8.Add(self.labDescricao, 0, wxALIGN_BOTTOM, 0)156 grid_sizer_8.Add(self.edtDescricao, 0, 0, 0)157 sizer_8.Add(grid_sizer_8, 0, 0, 0)158 sizer_5.Add(sizer_8, 1, wxEXPAND, 0)159 grid_sizer_4.Add(self.labEmail, 0, wxALIGN_BOTTOM, 0)160 grid_sizer_4.Add(self.edtEmail, 0, 0, 0)161 sizer_6.Add(grid_sizer_4, 0, 0, 0)162 grid_sizer_5.Add(self.labIdentidade, 0, wxALIGN_BOTTOM, 0)163 grid_sizer_5.Add(self.edtIdentidade, 0, 0, 0)164 sizer_6.Add(grid_sizer_5, 0, wxLEFT, 4)165 sizer_5.Add(sizer_6, 0, 0, 0)166 sizer_10.Add(self.rbSexo, 0, 0, 0)167 grid_sizer_11.Add(self.labTelefone, 0, wxALIGN_BOTTOM, 0)168 grid_sizer_11.Add(self.edtTelefone, 0, 0, 0)169 sizer_10.Add(grid_sizer_11, 1, wxLEFT|wxEXPAND, 4)170 grid_sizer_12.Add(self.labDtNasc, 0, wxALIGN_BOTTOM, 0)171 grid_sizer_12.Add(self.edtDtNasc, 0, 0, 0)172 sizer_10.Add(grid_sizer_12, 1, wxLEFT|wxEXPAND, 4)173 sizer_5.Add(sizer_10, 1, wxEXPAND, 0)174 sizer_12.Add(self.edtCodEndereco, 0, 0, 0)175 sizer_12.Add(self.btnPEndereco, 0, 0, 0)176 sizer_11.Add(sizer_12, 0, wxALL, 2)177 grid_sizer_13.Add(self.labLogradouro, 0, wxALIGN_BOTTOM, 0)178 grid_sizer_13.Add(self.edtLogradouro, 0, 0, 0)179 sizer_13.Add(grid_sizer_13, 0, 0, 0)180 grid_sizer_14.Add(self.labBairro, 0, wxALIGN_BOTTOM, 0)181 grid_sizer_14.Add(self.edtBairro, 0, 0, 0)182 sizer_13.Add(grid_sizer_14, 0, wxLEFT, 4)183 sizer_11.Add(sizer_13, 0, 0, 0)184 grid_sizer_15.Add(self.labCEP, 0, wxALIGN_BOTTOM, 0)185 grid_sizer_15.Add(self.edtCEP, 0, 0, 0)186 sizer_14.Add(grid_sizer_15, 0, 0, 0)187 grid_sizer_16.Add(self.labCidade, 0, wxALIGN_BOTTOM, 0)188 grid_sizer_16.Add(self.edtCidade, 0, 0, 0)189 sizer_14.Add(grid_sizer_16, 0, wxLEFT, 4)190 grid_sizer_17.Add(self.labEstado, 0, wxALIGN_BOTTOM, 0)191 grid_sizer_17.Add(self.edtEstado, 0, 0, 0)192 sizer_14.Add(grid_sizer_17, 0, wxLEFT, 4)193 sizer_11.Add(sizer_14, 1, 0, 0)194 sizer_5.Add(sizer_11, 0, 0, 0)195 grid_sizer_18.Add(self.labPais, 0, wxALIGN_BOTTOM, 0)196 grid_sizer_18.Add(self.edtCodPais, 0, 0, 0)197 sizer_15.Add(grid_sizer_18, 0, 0, 0)198 grid_sizer_20.Add(20, 20, 0, 0, 0)199 grid_sizer_20.Add(self.edtPais, 0, 0, 0)200 sizer_15.Add(grid_sizer_20, 0, wxLEFT, 2)201 grid_sizer_21.Add(20, 20, 0, 0, 0)202 grid_sizer_21.Add(self.btnPPais, 0, 0, 0)203 sizer_15.Add(grid_sizer_21, 0, 0, 0)204 sizer_5.Add(sizer_15, 0, 0, 0)205 grid_sizer_19.Add(self.labProfissao, 0, wxALIGN_BOTTOM, 0)206 grid_sizer_19.Add(self.edtCodProfissao, 0, 0, 0)207 sizer_16.Add(grid_sizer_19, 0, 0, 0)208 grid_sizer_22.Add(20, 20, 0, 0, 0)209 grid_sizer_22.Add(self.edtProfissao, 0, 0, 0)210 sizer_16.Add(grid_sizer_22, 0, wxLEFT, 2)211 grid_sizer_23.Add(20, 20, 0, 0, 0)212 grid_sizer_23.Add(self.btnPProfissao, 0, 0, 0)213 sizer_16.Add(grid_sizer_23, 0, 0, 0)214 sizer_5.Add(sizer_16, 0, 0, 0)215 sizer_3.Add(sizer_5, 0, 0, 0)216 sizer_4.Add(self.btnPesquisar, 0, wxALL|wxALIGN_RIGHT, 2)217 sizer_4.Add(self.btnAnterior, 0, wxALL|wxALIGN_RIGHT, 2)218 sizer_4.Add(self.btnProximo, 0, wxALL|wxALIGN_RIGHT, 2)219 sizer_3.Add(sizer_4, 1, 0, 0)220 sizer_1.Add(sizer_3, 1, wxALL|wxEXPAND, 4)221 sizer_2.Add(self.btnSalvar, 0, wxALL|wxALIGN_RIGHT|wxALIGN_BOTTOM, 2)222 sizer_2.Add(self.btnExcluir, 0, wxALL|wxALIGN_RIGHT|wxALIGN_BOTTOM, 2)223 sizer_2.Add(self.btnLimpar, 0, wxALL|wxALIGN_RIGHT|wxALIGN_BOTTOM, 2)224 sizer_2.Add(self.btnFechar, 0, wxALL|wxALIGN_RIGHT|wxALIGN_BOTTOM, 2)225 sizer_1.Add(sizer_2, 0, wxRIGHT|wxBOTTOM|wxALIGN_RIGHT|wxALIGN_BOTTOM, 4)226 self.SetAutoLayout(1)227 self.SetSizer(sizer_1)228 sizer_1.Fit(self)229 sizer_1.SetSizeHints(self)230 # end wxGlade...

Full Screen

Full Screen

frmCadEnderecos.py

Source:frmCadEnderecos.py Github

copy

Full Screen

1# generated by wxGlade 0.3.1 on Mon Dec 27 07:02:32 20042from wxPython.wx import *3# begin wxGlade: dependencies4# end wxGlade5class frmCadEnderecos(wxPanel):6 def __init__(self, *args, **kwds):7 # begin wxGlade: frmCadEnderecos.__init__8 kwds["style"] = wxTAB_TRAVERSAL9 wxPanel.__init__(self, *args, **kwds)10 self.labCodigo = wxStaticText(self, ID_FRMCADASTROS_LABCODIGO, "Código:")11 self.edtCodigo = wxTextCtrl(self, ID_FRMCADASTROS_EDTCODIGO, "")12 self.btnNovo = wxButton(self, ID_FRMCADASTROS_BTNNOVO, "&Novo")13 self.labDescricao = wxStaticText(self, ID_FRMCADASTROS_LABDESCRICAO, "Logradouro: ")14 self.edtDescricao = wxTextCtrl(self, ID_FRMCADASTROS_EDTDESCRICAO, "")15 self.labBairro = wxStaticText(self, ID_FRMCADENDERECOS_LABBAIRRO, "Bairro:")16 self.edtBairro = wxTextCtrl(self, ID_FRMCADENDERECOS_EDTBAIRRO, "")17 self.labCEP = wxStaticText(self, ID_FRMCADENDERECOS_LABCEP, "CEP: ")18 self.edtCEP = wxTextCtrl(self, ID_FRMCADENDERECOS_EDTCEP, "")19 self.labCidade = wxStaticText(self, ID_FRMCADENDERECOS_LABCIDADE, "Cidade: ")20 self.edtCidade = wxTextCtrl(self, ID_FRMCADENDERECOS_EDTCIDADE, "")21 self.labEstado = wxStaticText(self, ID_FRMCADENDERECOS_LABESTADO, "Estado: ")22 self.cmbEstado = wxChoice(self, ID_FRMCADENDERECOS_CMBESTADO, choices=["choice 1"])23 self.btnPesquisar = wxButton(self, ID_FRMCADASTROS_BTNPESQUISAR, "&Pesquisar")24 self.btnAnterior = wxButton(self, ID_FRMCADASTROS_BTNANTERIOR, "&Anterior")25 self.btnProximo = wxButton(self, ID_FRMCADASTROS_BTNPROXIMO, "Próxi&mo")26 self.btnSalvar = wxButton(self, ID_FRMCADASTROS_BTNSALVAR, "&Salvar")27 self.btnExcluir = wxButton(self, ID_FRMCADASTROS_BTNEXCLUIR, "&Excluir")28 self.btnLimpar = wxButton(self, ID_FRMCADASTROS_BTNLIMPAR, "&Limpar")29 self.btnFechar = wxButton(self, ID_FRMCADASTROS_BTNFECHAR, "&Fechar")30 self.__set_properties()31 self.__do_layout()32 # end wxGlade33 def __set_properties(self):34 # begin wxGlade: frmCadEnderecos.__set_properties35 self.labCodigo.SetSize((36, 13))36 self.edtCodigo.SetSize((121, 21))37 self.btnNovo.SetSize((75, 25))38 self.labDescricao.SetSize((57, 13))39 self.edtDescricao.SetSize((264, 21))40 self.edtDescricao.Enable(0)41 self.labBairro.SetSize((48, 13))42 self.edtBairro.SetSize((144, 21))43 self.edtBairro.Enable(0)44 self.labCEP.SetSize((40, 13))45 self.edtCEP.SetSize((72, 21))46 self.edtCEP.Enable(0)47 self.labCidade.SetSize((39, 13))48 self.edtCidade.SetSize((184, 21))49 self.edtCidade.Enable(0)50 self.labEstado.SetSize((56, 13))51 self.cmbEstado.SetSize((144, 21))52 self.cmbEstado.Enable(0)53 self.cmbEstado.SetSelection(0)54 self.btnPesquisar.SetSize((75, 25))55 self.btnAnterior.SetSize((75, 25))56 self.btnAnterior.Enable(0)57 self.btnProximo.SetSize((75, 25))58 self.btnProximo.Enable(0)59 self.btnSalvar.SetSize((75, 25))60 self.btnSalvar.Enable(0)61 self.btnExcluir.SetSize((75, 25))62 self.btnExcluir.Enable(0)63 self.btnLimpar.SetSize((75, 25))64 self.btnFechar.SetSize((75, 25))65 # end wxGlade66 def __do_layout(self):67 # begin wxGlade: frmCadEnderecos.__do_layout68 sizer_1 = wxBoxSizer(wxVERTICAL)69 sizer_2 = wxBoxSizer(wxHORIZONTAL)70 sizer_3 = wxBoxSizer(wxHORIZONTAL)71 sizer_4 = wxBoxSizer(wxVERTICAL)72 sizer_5 = wxBoxSizer(wxVERTICAL)73 sizer_6 = wxBoxSizer(wxHORIZONTAL)74 grid_sizer_6 = wxGridSizer(2, 1, 0, 0)75 grid_sizer_5 = wxGridSizer(2, 1, 0, 0)76 grid_sizer_4 = wxGridSizer(2, 1, 0, 0)77 sizer_8 = wxBoxSizer(wxHORIZONTAL)78 grid_sizer_9 = wxGridSizer(2, 1, 0, 0)79 grid_sizer_8 = wxGridSizer(2, 1, 0, 0)80 sizer_7 = wxBoxSizer(wxHORIZONTAL)81 grid_sizer_7 = wxGridSizer(2, 1, 0, 0)82 grid_sizer_7.Add(self.labCodigo, 0, wxALIGN_BOTTOM, 0)83 grid_sizer_7.Add(self.edtCodigo, 0, 0, 0)84 sizer_7.Add(grid_sizer_7, 0, 0, 0)85 sizer_7.Add(self.btnNovo, 0, wxLEFT|wxALIGN_BOTTOM, 5)86 sizer_5.Add(sizer_7, 1, 0, 0)87 grid_sizer_8.Add(self.labDescricao, 0, wxALIGN_BOTTOM, 0)88 grid_sizer_8.Add(self.edtDescricao, 0, 0, 0)89 sizer_8.Add(grid_sizer_8, 0, 0, 0)90 grid_sizer_9.Add(self.labBairro, 0, wxALIGN_BOTTOM, 0)91 grid_sizer_9.Add(self.edtBairro, 0, 0, 0)92 sizer_8.Add(grid_sizer_9, 0, wxLEFT, 2)93 sizer_5.Add(sizer_8, 1, wxEXPAND, 0)94 grid_sizer_4.Add(self.labCEP, 0, wxALIGN_BOTTOM, 0)95 grid_sizer_4.Add(self.edtCEP, 0, 0, 0)96 sizer_6.Add(grid_sizer_4, 0, 0, 0)97 grid_sizer_5.Add(self.labCidade, 0, wxALIGN_BOTTOM, 0)98 grid_sizer_5.Add(self.edtCidade, 0, 0, 0)99 sizer_6.Add(grid_sizer_5, 0, wxLEFT, 4)100 grid_sizer_6.Add(self.labEstado, 0, wxALIGN_BOTTOM, 0)101 grid_sizer_6.Add(self.cmbEstado, 0, 0, 0)102 sizer_6.Add(grid_sizer_6, 0, wxLEFT, 5)103 sizer_5.Add(sizer_6, 0, 0, 0)104 sizer_3.Add(sizer_5, 0, 0, 0)105 sizer_4.Add(self.btnPesquisar, 0, wxALL|wxALIGN_RIGHT, 2)106 sizer_4.Add(self.btnAnterior, 0, wxALL|wxALIGN_RIGHT, 2)107 sizer_4.Add(self.btnProximo, 0, wxALL|wxALIGN_RIGHT, 2)108 sizer_3.Add(sizer_4, 1, 0, 0)109 sizer_1.Add(sizer_3, 1, wxALL|wxEXPAND, 4)110 sizer_2.Add(self.btnSalvar, 0, wxALL|wxALIGN_RIGHT|wxALIGN_BOTTOM, 2)111 sizer_2.Add(self.btnExcluir, 0, wxALL|wxALIGN_RIGHT|wxALIGN_BOTTOM, 2)112 sizer_2.Add(self.btnLimpar, 0, wxALL|wxALIGN_RIGHT|wxALIGN_BOTTOM, 2)113 sizer_2.Add(self.btnFechar, 0, wxALL|wxALIGN_RIGHT|wxALIGN_BOTTOM, 2)114 sizer_1.Add(sizer_2, 0, wxRIGHT|wxBOTTOM|wxALIGN_RIGHT|wxALIGN_BOTTOM, 4)115 self.SetAutoLayout(1)116 self.SetSizer(sizer_1)117 sizer_1.Fit(self)118 sizer_1.SetSizeHints(self)119 # end wxGlade...

Full Screen

Full Screen

Automation Testing Tutorials

Learn to execute automation testing from scratch with LambdaTest Learning Hub. Right from setting up the prerequisites to run your first automation test, to following best practices and diving deeper into advanced test scenarios. LambdaTest Learning Hubs compile a list of step-by-step guides to help you be proficient with different test automation frameworks i.e. Selenium, Cypress, TestNG etc.

LambdaTest Learning Hubs:

YouTube

You could also refer to video tutorials over LambdaTest YouTube channel to get step by step demonstration from industry experts.

Run fMBT automation tests on LambdaTest cloud grid

Perform automation testing on 3000+ real desktop and mobile devices online.

Try LambdaTest Now !!

Get 100 minutes of automation test minutes FREE!!

Next-Gen App & Browser Testing Cloud

Was this article helpful?

Helpful

NotHelpful