forked from Support/sp-hydra-veil-gui
jpg to png
This commit is contained in:
parent
a6f3779a98
commit
0d1580026a
2 changed files with 2 additions and 0 deletions
|
Before Width: | Height: | Size: 1 MiB After Width: | Height: | Size: 1 MiB |
|
|
@ -225,6 +225,8 @@ class LocationPage(Page):
|
|||
max_size = QtCore.QSize(300, 300)
|
||||
target_size = self.display.size().boundedTo(max_size)
|
||||
|
||||
print(f"show_location is looking for a location of {location}")
|
||||
|
||||
self.display.setPixmap(QPixmap(os.path.join(self.btn_path, f"icon_{location}.png")).scaled(
|
||||
target_size, Qt.AspectRatioMode.KeepAspectRatio))
|
||||
self.selected_location_icon = location
|
||||
|
|
|
|||
Loading…
Reference in a new issue