You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# Self-commentary: an additional/extra parent argument with default value None is added.
412
+
# This subtletly relates to following line of code elsewhere:
413
+
# >> popup = AdvancedPopup(self)
414
+
# The explicit 'self' argument here corresponds to the second 'parent' of AdvancedPopup (not the implicit first 'self' to be used inside the class)
415
+
# Put differently, the 'self' written in the expression 'AdvancedPopup(self)' is *at the location of that expression* actually referring to EurostatBrowserDialog
416
+
417
+
# Pass the parent to the base class constructor
418
+
super().__init__(parent)
419
+
420
+
# Inititalize the UI and set default values
421
+
self.initUI()
422
+
self.yaml_content= {}
423
+
424
+
425
+
definitUI(self):
426
+
self.resize(600, 600)
427
+
layout=QVBoxLayout(self)
428
+
429
+
# Button to load YAML
430
+
self.loadButton=QPushButton("Load YAML", self)
431
+
self.loadButton.clicked.connect(self.loadYAML)
432
+
layout.addWidget(self.loadButton)
433
+
434
+
# TextEdit for YAML content
435
+
self.yamlTextEdit=QTextEdit(self)
436
+
437
+
importtextwrap
438
+
default_yaml=textwrap.dedent("""\
439
+
# First indicator with its specific settings.
440
+
indicator_name_1:
441
+
name: var1, var2, var3
442
+
var1:
443
+
label1: renamed_label1
444
+
label2: renamed_label2
445
+
var2:
446
+
label1: renamed_label1
447
+
label2: renamed_label2
448
+
...
449
+
# You can continue adding more indicators and labels as per your requirements.
0 commit comments