Esempio n. 1
0
 def timeseries_list_view(self):
     from utils.database_utils import DatabaseConnect
     db = DatabaseConnect()
     self.timeseries_list, self.timeseriesId_list = db.get_timeserieses(
         window=self.temp_window)
     self.timeseries_listWidget = QtWidgets.QListWidget()
     index = 0
     for item in self.timeseriesId_list:
         listitem = QtWidgets.QListWidgetItem()
         listitem.setText(self.timeseries_list[index])
         listitem.setData(1, item)
         index += 1
         self.timeseries_listWidget.addItem(listitem)
     self.timeseries_listWidget.currentItemChanged.connect(
         self.timeseries_list_item_event)
     self.scrollArea_timeseries.setWidget(self.timeseries_listWidget)
Esempio n. 2
0
 def timeseries_list_view(self):
     """
              creates the items of list widget to display the list of Time-series on the window
     """
     from utils.database_utils import DatabaseConnect
     db = DatabaseConnect()
     self.timeseries_list, self.timeseriesId_list = db.get_timeserieses(
         window=self.temp_window)
     self.listWidget_timeseries.clear()
     index = 0
     for item in self.timeseriesId_list:
         listitem = QtWidgets.QListWidgetItem()
         listitem.setText(self.timeseries_list[index])
         listitem.setData(1, item)
         index += 1
         self.listWidget_timeseries.addItem(listitem)
     self.listWidget_timeseries.itemClicked.connect(
         self.timeseries_list_item_event)