main.py
def generate_barcode(self):
        """This method generates barcode on the bases of string that user has entered"""

        image = barcode.get_barcode_class('ean13')      # selecting appropriate format for generating barcode
        image_bar = image(u'{}'.format(self.lineEdit.text()))     # for formatting entered string to pass it into method
        file = open('barcode.svg', 'wb')    # to save generated barcode
        image_bar.write(file)
This method generates barcode on the bases of string that user has entered
This method generates barcode on the bases of string that user has entered
This method generates barcode on the bases of string that user has entered
def generate_barcode(self):
        image = barcode.get_barcode_class('ean13')      
        image_bar = image(u'{}'.format(self.lineEdit.text()))     
        file = open('barcode.svg', 'wb')    
        image_bar.write(file)
def generate_barcode ( self ) : image = barcode . get_barcode_class ( 'ean13' ) image_bar = image ( u'{}' . format ( self . lineEdit . text ( ) ) ) file = open ( 'barcode.svg' , 'wb' ) image_bar . write ( file )
This method generates barcode on the bases of string that user has entered
This method generates barcode on the bases of string that user has entered
"""This method generates barcode on the bases of string that user has entered""" # selecting appropriate format for generating barcode
 # for formatting entered string to pass it into method
 # to save generated barcode

self