Added standard default pictures
This commit is contained in:
1
.gitignore
vendored
1
.gitignore
vendored
@@ -4,3 +4,4 @@ Data
|
||||
*.ipynb
|
||||
wav_converter.py
|
||||
*.txt
|
||||
icons_imgs
|
||||
|
||||
4
main.py
4
main.py
@@ -258,13 +258,13 @@ class MyApp(QMainWindow, Ui_MainWindow):
|
||||
return 10**9
|
||||
|
||||
def display_spectrogram(self):
|
||||
default_pic = os.path.join("icons_imgs", "image_not_found.png")
|
||||
default_pic = os.path.join("icons_imgs", "nosignalselected.png")
|
||||
item = self.result_list.currentItem()
|
||||
if item:
|
||||
spectrogram_name = item.text()
|
||||
path_spectr = os.path.join("Data", "Spectra", spectrogram_name + ".jpg")
|
||||
if not QFileInfo(path_spectr).exists():
|
||||
path_spectr = default_pic
|
||||
path_spectr = os.path.join("icons_imgs", "spectrumnotavailable.png")
|
||||
else:
|
||||
path_spectr = default_pic
|
||||
self.spectrogram.setPixmap(QPixmap(path_spectr))
|
||||
|
||||
@@ -17,7 +17,7 @@
|
||||
</sizepolicy>
|
||||
</property>
|
||||
<property name="windowTitle">
|
||||
<string>MainWindow</string>
|
||||
<string>ARTEMIS2</string>
|
||||
</property>
|
||||
<property name="styleSheet">
|
||||
<string notr="true">QWidget {
|
||||
@@ -1920,7 +1920,7 @@ p, li { white-space: pre-wrap; }
|
||||
</property>
|
||||
<property name="minimumSize">
|
||||
<size>
|
||||
<width>310</width>
|
||||
<width>270</width>
|
||||
<height>0</height>
|
||||
</size>
|
||||
</property>
|
||||
@@ -2159,7 +2159,7 @@ QSlider::handle:horizontal {
|
||||
<property name="minimumSize">
|
||||
<size>
|
||||
<width>250</width>
|
||||
<height>400</height>
|
||||
<height>417</height>
|
||||
</size>
|
||||
</property>
|
||||
<property name="toolTip">
|
||||
@@ -2172,7 +2172,7 @@ QSlider::handle:horizontal {
|
||||
<string/>
|
||||
</property>
|
||||
<property name="pixmap">
|
||||
<pixmap>icons_imgs/image_not_found.png</pixmap>
|
||||
<pixmap>icons_imgs/nosignalselected.png</pixmap>
|
||||
</property>
|
||||
<property name="scaledContents">
|
||||
<bool>true</bool>
|
||||
|
||||
Reference in New Issue
Block a user