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