def _createWidgets(self): r = 0 c = 0 self._nameLabel = Label(self, text=World.L("NAME")); self._nameLabel.grid(row=r, column=c, sticky=W, padx=World.smallPadSize(), pady=World.smallPadSize()) c += 1 self._nameEntry = Entry(self, width=World.defaultEntryWidth()) self._nameEntry.grid(row=r, column=c, sticky=W, padx=World.smallPadSize(), pady=World.smallPadSize()) c = 0 r += 1 self._groupNrLabel = Label(self, text=World.L("ADDRESS")) self._groupNrLabel.grid(row=r, column=c, sticky=W, padx=World.smallPadSize(), pady=World.smallPadSize()) c += 1 self._groupNrEntry = Entry(self, width=World.defaultEntryWidth()) self._groupNrEntry.grid(row=r, column=c, sticky=W, padx=World.smallPadSize(), pady=World.smallPadSize()) c = 0 r += 1 self._remarkLabel = Label(self, text=World.L("REMARK")) self._remarkLabel.grid(row=r, column=c, sticky=W, padx=World.smallPadSize(), pady=World.smallPadSize()) c += 1 self._remarkEntry = Text(self, width=World.textEntryWidth(), height=10) self._remarkEntry.grid(row=r, column=c, sticky="WE", padx=World.smallPadSize(), pady=World.smallPadSize()) # Append operation buttons c = 0 r += 1 AbstractFrame._createWidgets(self, r , c, 2)
def _createWidgets(self): r = 0 c = 0 self._nameLabel = Label(self, text=World.L("NAME")) self._nameLabel.grid(row=r, column=c, sticky=W, padx=World.smallPadSize(), pady=World.smallPadSize()) c += 1 self._nameEntry = Entry(self, width=World.defaultEntryWidth()) self._nameEntry.grid(row=r, column=c, sticky=W, padx=World.smallPadSize(), pady=World.smallPadSize()) c = 0 r += 1 self._groupNrLabel = Label(self, text=World.L("ADDRESS")) self._groupNrLabel.grid(row=r, column=c, sticky=W, padx=World.smallPadSize(), pady=World.smallPadSize()) c += 1 self._groupNrEntry = Entry(self, width=World.defaultEntryWidth()) self._groupNrEntry.grid(row=r, column=c, sticky=W, padx=World.smallPadSize(), pady=World.smallPadSize()) c = 0 r += 1 self._remarkLabel = Label(self, text=World.L("REMARK")) self._remarkLabel.grid(row=r, column=c, sticky=W, padx=World.smallPadSize(), pady=World.smallPadSize()) c += 1 self._remarkEntry = Text(self, width=World.textEntryWidth(), height=10) self._remarkEntry.grid(row=r, column=c, sticky="WE", padx=World.smallPadSize(), pady=World.smallPadSize()) # Append operation buttons c = 0 r += 1 AbstractFrame._createWidgets(self, r, c, 2)
def _createWidgets(self): r = 0 c = 0 self._nameLabel = Label(self, text=World.L("NAME")); self._nameLabel.grid(row=r, column=c, sticky=W, padx=World.smallPadSize(), pady=World.smallPadSize()) c += 1 self._nameEntry = Entry(self, width=World.defaultEntryWidth()) self._nameEntry.grid(row=r, column=c, sticky=W, padx=World.smallPadSize(), pady=World.smallPadSize()) r += 1 c = 0 self._barcodeLabel = Label(self, text=World.L("BARCODE")); self._barcodeLabel.grid(row=r, column=c, sticky=W, padx=World.smallPadSize(), pady=World.smallPadSize()) c += 1 self._barcodeEntry = Entry(self, width=World.defaultEntryWidth()) self._barcodeEntry.grid(row=r, column=c, sticky=W, padx=World.smallPadSize(), pady=World.smallPadSize()) c = 0 r += 1 self._isEndProductLabel = Label(self, text=World.L("IS_END/IS_SEMI")) self._isEndProductLabel.grid(row=r, column=c, sticky=W, padx=World.smallPadSize(), pady=World.smallPadSize()) c += 1 self._isEndProductEntry = Entry(self, width=World.defaultEntryWidth()) self._isEndProductEntry.grid(row=r, column=c, sticky=W, padx=World.smallPadSize(), pady=World.smallPadSize()) c = 0 r += 1 self._contentLabel = Label(self, text=World.L("CONTENTS")) self._contentLabel.grid(row=r, column=c, sticky=W, padx=World.smallPadSize(), pady=World.smallPadSize()) c += 1 hd = (World.L('ID'), World.L('NAME'), World.L('%'), World.L('REMARK')) self._contentTable = MinuxTable(self, columns=4, header=hd, type=self._rawMaterialContentType) # self._contentTable.setInvisibleColumns((1,3, 7)) self._contentTable.grid(row=r, column=c, sticky=W, padx=World.smallPadSize(), pady=World.smallPadSize()) c = 0 r += 1 self._remarkLabel = Label(self, text=World.L("REMARK")) self._remarkLabel.grid(row=r, column=c, sticky=W, padx=World.smallPadSize(), pady=World.smallPadSize()) c += 1 self._remarkEntry = Text(self, width=World.textEntryWidth(), height=10) self._remarkEntry.grid(row=r, column=c, sticky="WE", padx=World.smallPadSize(), pady=World.smallPadSize()) # Append operation buttons c = 0 r += 1 AbstractFrame._createWidgets(self, r , c, 2)
def _createWidgets(self): r = 0 c = 0 self._nameLabel = Label(self, text=World.L("NAME")); self._nameLabel.grid(row=r, column=c, sticky=W, padx=World.smallPadSize(), pady=World.smallPadSize()) c += 1 self._nameEntry = Entry(self, width=World.defaultEntryWidth()) self._nameEntry.grid(row=r, column=c, sticky=W, padx=World.smallPadSize(), pady=World.smallPadSize()) c = 0 r += 1 self._additiveGroupLabel = Label(self, text=World.L("ADDITIVE_GROUP")) self._additiveGroupLabel.grid(row=r, column=c, sticky=W, padx=World.smallPadSize(), pady=World.smallPadSize()) c += 1 hd = (World.L('ID'), World.L('NAME')) self._additiveGroupTable = ChooserTable(self, columns=3, header=hd, type=self._additiveGroupType) self._additiveGroupTable.setInvisibleColumns((1,3,4)) self._additiveGroupTable.grid(row=r, column=c, sticky=W, padx=World.smallPadSize(), pady=World.smallPadSize()) c = 0 r += 1 self._eNumberLabel = Label(self, text=World.L("E_NUMBER")) self._eNumberLabel.grid(row=r, column=c, sticky=W, padx=World.smallPadSize(), pady=World.smallPadSize()) c += 1 self._eNumberEntry = Entry(self, width=World.defaultEntryWidth()) self._eNumberEntry.grid(row=r, column=c, sticky=W, padx=World.smallPadSize(), pady=World.smallPadSize()) c = 0 r += 1 self._remarkLabel = Label(self, text=World.L("REMARK")) self._remarkLabel.grid(row=r, column=c, sticky=W, padx=World.smallPadSize(), pady=World.smallPadSize()) c += 1 self._remarkEntry = Text(self, width=World.textEntryWidth(), height=10) self._remarkEntry.grid(row=r, column=c, sticky="WE", padx=World.smallPadSize(), pady=World.smallPadSize()) # Append operation buttons c = 0 r += 1 AbstractFrame._createWidgets(self, r , c, 2)
def _createWidgets(self): r = 0 c = 0 self._nameLabel = Label(self, text=World.L("NAME")) self._nameLabel.grid(row=r, column=c, sticky=W, padx=World.smallPadSize(), pady=World.smallPadSize()) c += 1 self._nameEntry = Entry(self, width=World.defaultEntryWidth()) self._nameEntry.grid(row=r, column=c, sticky=W, padx=World.smallPadSize(), pady=World.smallPadSize()) c = 0 r += 1 self._isCompositeLabel = Label(self, text=World.L("IS_COMPOSITE")) self._isCompositeLabel.grid(row=r, column=c, sticky=W, padx=World.smallPadSize(), pady=World.smallPadSize()) c += 1 self._isCompositeEntry = Entry(self, width=World.defaultEntryWidth()) self._isCompositeEntry.grid(row=r, column=c, sticky=W, padx=World.smallPadSize(), pady=World.smallPadSize()) c = 0 r += 1 self._contentLabel = Label(self, text=World.L("CONTENTS")) self._contentLabel.grid(row=r, column=c, sticky=W, padx=World.smallPadSize(), pady=World.smallPadSize()) c += 1 hd = (World.L('ID'), World.L('NAME'), World.L('%'), World.L('REMARK')) self._contentTable = MinuxTable(self, columns=4, header=hd, type=self._rawMaterialContentType) # self._contentTable.setInvisibleColumns((1,3, 7)) self._contentTable.grid(row=r, column=c, sticky=W, padx=World.smallPadSize(), pady=World.smallPadSize()) c = 0 r += 1 self._remarkLabel = Label(self, text=World.L("REMARK")) self._remarkLabel.grid(row=r, column=c, sticky=W, padx=World.smallPadSize(), pady=World.smallPadSize()) c += 1 self._remarkEntry = Text(self, width=World.textEntryWidth(), height=10) self._remarkEntry.grid(row=r, column=c, sticky="WE", padx=World.smallPadSize(), pady=World.smallPadSize()) # Append operation buttons c = 0 r += 1 AbstractFrame._createWidgets(self, r, c, 2)
def _createWidgets(self): r = 0 c = 0 self._nameLabel = Label(self, text=World.L("NAME")) self._nameLabel.grid(row=r, column=c, sticky=W, padx=World.smallPadSize(), pady=World.smallPadSize()) c += 1 self._nameEntry = Entry(self, width=World.defaultEntryWidth()) self._nameEntry.grid(row=r, column=c, sticky=W, padx=World.smallPadSize(), pady=World.smallPadSize()) c = 0 r += 1 self._regNumberLabel = Label(self, text=World.L("REG_NUMBER")) self._regNumberLabel.grid(row=r, column=c, sticky=W, padx=World.smallPadSize(), pady=World.smallPadSize()) c += 1 self._regNumberEntry = Entry(self, width=World.defaultEntryWidth()) self._regNumberEntry.grid(row=r, column=c, sticky=W, padx=World.smallPadSize(), pady=World.smallPadSize()) c = 0 r += 1 self._bankAccountLabel = Label(self, text=World.L("BANK_ACCOUNT_NUMBER")) self._bankAccountLabel.grid(row=r, column=c, sticky=W, padx=World.smallPadSize(), pady=World.smallPadSize()) c += 1 self._bankAccountEntry = Entry(self, width=World.defaultEntryWidth()) self._bankAccountEntry.grid(row=r, column=c, sticky=W, padx=World.smallPadSize(), pady=World.smallPadSize()) c = 0 r += 1 self._headCityLabel = Label(self, text=World.L("LOCATION")) self._headCityLabel.grid(row=r, column=c, sticky=W, padx=World.smallPadSize(), pady=World.smallPadSize()) c += 1 self._headCityEntry = Entry(self, width=World.defaultEntryWidth()) self._headCityEntry.grid(row=r, column=c, sticky=W, padx=World.smallPadSize(), pady=World.smallPadSize()) c = 0 r += 1 self._headZipLabel = Label(self, text=World.L("ZIP")) self._headZipLabel.grid(row=r, column=c, sticky=W, padx=World.smallPadSize(), pady=World.smallPadSize()) c += 1 self._headZipEntry = Entry(self, width=8) self._headZipEntry.grid(row=r, column=c, sticky=W, padx=World.smallPadSize(), pady=World.smallPadSize()) c = 0 r += 1 self._headAddressLabel = Label(self, text=World.L("ADDRESS")) self._headAddressLabel.grid(row=r, column=c, sticky=W, padx=World.smallPadSize(), pady=World.smallPadSize()) c += 1 self._headAddressEntry = Entry(self, width=World.defaultEntryWidth()) self._headAddressEntry.grid(row=r, column=c, sticky=W, padx=World.smallPadSize(), pady=World.smallPadSize()) c = 0 r += 1 self._contactLabel = Label(self, text=World.L("CONTACTS")) self._contactLabel.grid(row=r, column=c, sticky=W, padx=World.smallPadSize(), pady=World.smallPadSize()) c += 1 hd = (World.L('ID'), World.L('NAME'), World.L('ADDRESS'), World.L('PHONE'), World.L('EMAIL')) self._contactTable = MinuxTable(self, columns=6, header=hd, type=self._personType) self._contactTable.setInvisibleColumns((1, 3, 7)) self._contactTable.grid(row=r, column=c, sticky=W, padx=World.smallPadSize(), pady=World.smallPadSize()) c = 0 r += 1 self._remarkLabel = Label(self, text=World.L("REMARK")) self._remarkLabel.grid(row=r, column=c, sticky=W, padx=World.smallPadSize(), pady=World.smallPadSize()) c += 1 self._remarkEntry = Text(self, width=World.textEntryWidth(), height=10) self._remarkEntry.grid(row=r, column=c, sticky="WE", padx=World.smallPadSize(), pady=World.smallPadSize()) # Append operation buttons c = 0 r += 1 AbstractFrame._createWidgets(self, r, c, 2)
def __createWidgets(self): c = 0 r = 0 idLabel = Label(self, text=World.L("ID")) idLabel.grid(row=r, column=c, padx=World.smallPadSize(), pady=World.smallPadSize()) c += 1 self.__idEntry = Label(self) self.__idEntry.grid(row=r, column=c, padx=World.smallPadSize(), pady=World.smallPadSize()) r += 1 c = 0 nameLabel = Label(self, text=World.L("NAME")) nameLabel.grid(row=r, column=c, padx=World.smallPadSize(), pady=World.smallPadSize()) c += 1 self.__nameEntry = Entry(self, width=World.defaultEntryWidth()) self.__nameEntry.grid(row=r, column=c, padx=World.smallPadSize(), pady=World.smallPadSize()) r += 1 c = 0 addressLabel = Label(self, text=World.L("ADDRESS")) addressLabel.grid(row=r, column=c, padx=World.smallPadSize(), pady=World.smallPadSize()) c += 1 self.__addressEntry = Text(self, width=World.textEntryWidth(), height=4) self.__addressEntry.grid(row=r, column=c, padx=World.smallPadSize(), pady=World.smallPadSize()) r += 1 c = 0 phoneLabel = Label(self, text=World.L("PHONE")) phoneLabel.grid(row=r, column=c, padx=World.smallPadSize(), pady=World.smallPadSize()) c += 1 self.__phoneEntry = Text(self, width=World.textEntryWidth(), height=4) self.__phoneEntry.grid(row=r, column=c, padx=World.smallPadSize(), pady=World.smallPadSize()) r += 1 c = 0 emailLabel = Label(self, text=World.L("EMAIL")) emailLabel.grid(row=r, column=c, padx=World.smallPadSize(), pady=World.smallPadSize()) c += 1 self.__emailEntry = Text(self, width=World.textEntryWidth(), height=4) self.__emailEntry.grid(row=r, column=c, padx=World.smallPadSize(), pady=World.smallPadSize()) r += 1 c = 0 remarkLabel = Label(self, text=World.L("REMARK")) remarkLabel.grid(row=r, column=c, padx=World.smallPadSize(), pady=World.smallPadSize()) c += 1 self.__remarkEntry = Text(self, width=World.textEntryWidth(), height=10) self.__remarkEntry.grid(row=r, column=c, padx=World.smallPadSize(), pady=World.smallPadSize()) ### BUTTONS ### r += 1 c = 0 f = Frame(self) readyButton = Button(f, text=World.L('READY'), command=self.__sendDataToMaster) readyButton.pack(side=LEFT, padx=World.smallPadSize(), pady=World.smallPadSize()) cancelButton = Button(f, text=World.L('CANCEL'), command=self.destroy) cancelButton.pack(side=LEFT, padx=World.smallPadSize(), pady=World.smallPadSize()) deleteButton = Button(f, text=World.L('DELETE'), command=self.__markForDeletion) deleteButton.pack(side=LEFT, padx=World.smallPadSize(), pady=World.smallPadSize()) f.grid(row=r, column=c, columnspan=2, sticky=E, padx=World.smallPadSize(), pady=World.smallPadSize()) self.center() self.resizable(False, False)
def _createWidgets(self): r = 0 c = 0 self._nameLabel = Label(self, text=World.L("NAME")); self._nameLabel.grid(row=r, column=c, sticky=W, padx=World.smallPadSize(), pady=World.smallPadSize()) c += 1 self._nameEntry = Entry(self, width=World.defaultEntryWidth()) self._nameEntry.grid(row=r, column=c, sticky=W, padx=World.smallPadSize(), pady=World.smallPadSize()) c = 0 r += 1 self._regNumberLabel = Label(self, text=World.L("REG_NUMBER")) self._regNumberLabel.grid(row=r, column=c, sticky=W, padx=World.smallPadSize(), pady=World.smallPadSize()) c += 1 self._regNumberEntry = Entry(self, width=World.defaultEntryWidth()) self._regNumberEntry.grid(row=r, column=c, sticky=W, padx=World.smallPadSize(), pady=World.smallPadSize()) c = 0 r += 1 self._bankAccountLabel = Label(self, text=World.L("BANK_ACCOUNT_NUMBER")) self._bankAccountLabel.grid(row=r, column=c, sticky=W, padx=World.smallPadSize(), pady=World.smallPadSize()) c += 1 self._bankAccountEntry = Entry(self, width=World.defaultEntryWidth()) self._bankAccountEntry.grid(row=r, column=c, sticky=W, padx=World.smallPadSize(), pady=World.smallPadSize()) c = 0 r += 1 self._headCityLabel = Label(self, text=World.L("LOCATION")) self._headCityLabel.grid(row=r, column=c, sticky=W, padx=World.smallPadSize(), pady=World.smallPadSize()) c += 1 self._headCityEntry = Entry(self, width=World.defaultEntryWidth()) self._headCityEntry.grid(row=r, column=c, sticky=W, padx=World.smallPadSize(), pady=World.smallPadSize()) c = 0 r += 1 self._headZipLabel = Label(self, text=World.L("ZIP")) self._headZipLabel.grid(row=r, column=c, sticky=W, padx=World.smallPadSize(), pady=World.smallPadSize()) c += 1 self._headZipEntry = Entry(self, width=8) self._headZipEntry.grid(row=r, column=c, sticky=W, padx=World.smallPadSize(), pady=World.smallPadSize()) c = 0 r += 1 self._headAddressLabel = Label(self, text=World.L("ADDRESS")) self._headAddressLabel.grid(row=r, column=c, sticky=W, padx=World.smallPadSize(), pady=World.smallPadSize()) c += 1 self._headAddressEntry = Entry(self, width=World.defaultEntryWidth()) self._headAddressEntry.grid(row=r, column=c, sticky=W, padx=World.smallPadSize(), pady=World.smallPadSize()) c = 0 r += 1 self._contactLabel = Label(self, text=World.L("CONTACTS")) self._contactLabel.grid(row=r, column=c, sticky=W, padx=World.smallPadSize(), pady=World.smallPadSize()) c += 1 hd = (World.L('ID'), World.L('NAME'), World.L('ADDRESS'), World.L('PHONE'), World.L('EMAIL')) self._contactTable = MinuxTable(self, columns=6, header=hd, type=self._personType) self._contactTable.setInvisibleColumns((1,3, 7)) self._contactTable.grid(row=r, column=c, sticky=W, padx=World.smallPadSize(), pady=World.smallPadSize()) c = 0 r += 1 self._remarkLabel = Label(self, text=World.L("REMARK")) self._remarkLabel.grid(row=r, column=c, sticky=W, padx=World.smallPadSize(), pady=World.smallPadSize()) c += 1 self._remarkEntry = Text(self, width=World.textEntryWidth(), height=10) self._remarkEntry.grid(row=r, column=c, sticky="WE", padx=World.smallPadSize(), pady=World.smallPadSize()) # Append operation buttons c = 0 r += 1 AbstractFrame._createWidgets(self, r , c, 2)