import barcode
from barcode.writer import ImageWriter

from generate_ean import getnumber

ean = getnumber()
bar = barcode.get('ean13', ean, writer=ImageWriter())
filename = bar.save('ean13')
Esempio n. 2
0
 def generate_barcode(self):
     self.ean = getnumber()
     self.eanDisplayLbl.setText(self.ean)