fnugrahendi / petuk.corp

there is nothing to describe.
GNU General Public License v2.0
1 stars 2 forks source link

Pilih data seko dataMaster #5

Closed imakin closed 9 years ago

imakin commented 9 years ago

ndro, nek misal input seko data2 datamaster nganggo QPushButton instead of QLineEdit piye ndro? clear e nganggo setText("") Misal line edit mu self.le_Pembelian_OrderPembelian_TambahProduk_Input_Nama dadi self.tb_Pembelian_OrderPembelian_TambahProduk_Input_Nama

trs tinggal gawe fungsi kaya ngene

def Pembelian_OrderPembelian_TambahProduk(self):
        data = []
        def isi():
            self.tb_Pembelian_OrderPembelian_TambahProduk_Input_Nama.setText(str(data[0]))
        def batal():
            self.tb_Pembelian_OrderPembelian_TambahProduk_Input_Nama.setText("-")
        self.DataMaster_DataNamaAlamat_Popup_Pilih(data,isi,batal)

trus tinggal connect self.tb_Pembelian_OrderPembelian_TambahProduk_Input_Nama.clicked.connect(self.Pembelian_OrderPembelian_TambahProduk)

fnugrahendi commented 9 years ago

bole zuga kin.bariki tek jajale

fnugrahendi commented 9 years ago

wih dadi jon. terbaik lah kau jon.

imakin commented 9 years ago

haha tenan? mantap... style e paling ngene kiye

QPushButton{
     border-style:inset;
     border-width:1px;
     border-radius:2px;
     border-color:rgb(156, 156, 156);
     background-color:#ffffff;
     min-height:23px;
}

nek sisan karo QLineEdit seframe QLineEdit,QPushButton{border-style:inset;border-width:1px;border-radius:2px;border-color:rgb(156, 156, 156);background-color:#ffffff;min-height:23px;} :hankey:

fnugrahendi commented 9 years ago

tapi cara njupuk duit/moco buku data seko sing dipilih kui pie?button raiso diwoco text/current text e je

imakin commented 9 years ago

kayane aku nganggo text()

     kodeOrange = self.tb_Pembelian_OrderPembelian_TambahProduk_Input_Nama.text()

neng class dataDepartemen https://github.com/fnugrahendi/petuk.corp/blob/master/datamaster/DataDepartemen.py baris 386

induk = self.tb_DataMaster_DataDepartemen_ParentDepartemen.text()
penjab = self.tb_DataMaster_DataDepartemen_KodePenjab.text()
fnugrahendi commented 9 years ago

wo iso to.yo