dunyadesktop_app/mainui_design_makam.py
from general_design import GeneralMainDesign
class MainWindowMakamDesign(GeneralMainDesign):
"""The main window design of makam culture.
Inherits GeneralMainDesign and changes the names of the labels."""
def __init__(self):
# setting the interface
GeneralMainDesign.__init__(self)
self._set_main_label()
self._retranslate_ui_elements()
def _set_main_label(self):
"""Changes the text of the label """
self.dwc_top.label_corpus.setText('<html><head/><body><p '
'align="center"><span style=" '
'font-size:15pt; '
'color:#C1C1C1;">Ottoman-Turkish '
'Makam Music '
'Corpus</span></p></body></html>')
def _retranslate_ui_elements(self):
"""Changes the names of comboboxes and tabs"""
self.frame_query.frame_attributes.comboBox_melodic.\
set_placeholder_text('Makam')
self.frame_query.frame_attributes.comboBox_form.\
set_placeholder_text('Form')
self.frame_query.frame_attributes.comboBox_rhythm.\
set_placeholder_text('Usul')