Skip to content

Commit

Permalink
Add files via upload
Browse files Browse the repository at this point in the history
  • Loading branch information
SECRET-GUEST authored Oct 23, 2023
1 parent 73b6548 commit 9948653
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions scripts/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -159,6 +159,7 @@ def select_folder(self):

#Function to generate images from codes
def generate_images(self):
self.select_folder()

url = self.in_url.text()
gen_qr = self.chkbx_qrx.isChecked()
Expand Down Expand Up @@ -190,7 +191,7 @@ def generate_images(self):

#function to generate qr code
def generate_qr_code(self, url):

qr = qrcode.QRCode(
version=1,
error_correction=qrcode.constants.ERROR_CORRECT_L,
Expand Down Expand Up @@ -299,9 +300,6 @@ def GUI(self):

self.chkbx_barcode = QCheckBox("Barcode")

self.btn_select_folder = QPushButton("Select folder")
self.btn_select_folder.clicked.connect(self.select_folder)

self.btn_generator = QPushButton("Generate")
self.btn_generator.clicked.connect(self.generate_images)

Expand All @@ -312,7 +310,6 @@ def GUI(self):
lay_barcraft.addWidget(self.in_url)
lay_barcraft.addWidget(self.chkbx_qrx)
lay_barcraft.addWidget(self.chkbx_barcode)
lay_barcraft.addWidget(self.btn_select_folder)
lay_barcraft.addWidget(self.btn_generator)
lay_barcraft.addWidget(self.lab_folder)

Expand Down

0 comments on commit 9948653

Please sign in to comment.