I am the programmer with a learner plate. There is a dialogue in the same wxpython programme which I posted on 28 Apr. By calling the dialogue, the original design allows:
the price and quantity be changed by the cashier,
the system would check 2 dictionaries for duplicates and adjust the prices and quantity.
Is it possible to set LN 15 OK button to OK permanently? There will be no need for human intervention for each input. To dismantle the dialogue would need a lot of programming beyond my capability now.TKS
I cut away the dlg part and replaced it with some fixed values.Everything works fine except that the bar code has been read 248 times and there is no loop in the codes. It was entered only once. What went wrong?
Dear Tim,
I pirated a kind-hearted man’s open-source programme for my own use.
The bar code is entered here.
Line 229 self.search_text = (self.search_bar.GetValue()).split()
The original design was bring up a dialogue. All data would be stored in self.input [ ]. I deleted the dialogue.
Line 258 self.input = [self.selected_info[0],self.selected_info[1],self.selected_info[3],'1']
The bar code is entered here.
Line 229 self.search_text = (self.search_bar.GetValue()).split()
Line 258 self.input = [self.selected_info[0],self.selected_info[1],self.selected_info[3],'1']
The barcode has been read 248 times or more although it was entered once.