Compare commits

..

No commits in common. "cbd99f25acd070b6c397f9c7d8a98eadb86341e1" and "527cfe80d39b42d74653052cbe31954300ea7317" have entirely different histories.

17
main.py
View File

@ -7,9 +7,6 @@ import time
import webbrowser import webbrowser
from PySide2.QtCore import QObject, QThread, Signal, Slot from PySide2.QtCore import QObject, QThread, Signal, Slot
from PySide2.QtGui import QPalette, QColor
from PySide2.QtWidgets import ( from PySide2.QtWidgets import (
QApplication, QApplication,
QDialog, QDialog,
@ -51,11 +48,6 @@ class Dialog(QDialog):
def __init__(self): def __init__(self):
super(Dialog, self).__init__() super(Dialog, self).__init__()
palette = self.palette()
palette.setColor(QPalette.Window, QColor(255, 255, 255))
self.setPalette(palette)
self.setAutoFillBackground(True)
self.setWindowTitle("OrgEditor") self.setWindowTitle("OrgEditor")
scrSize = self.screen().size() scrSize = self.screen().size()
self.resize(scrSize.width() / 1.5, scrSize.height() / 1.5) self.resize(scrSize.width() / 1.5, scrSize.height() / 1.5)
@ -88,8 +80,6 @@ class Dialog(QDialog):
self.tabBar.addTab("Agenda") self.tabBar.addTab("Agenda")
self.tabBar.addTab("Notes") self.tabBar.addTab("Notes")
self.tabBar.addTab("Tasks") self.tabBar.addTab("Tasks")
self.tabBar.addTab("History")
self.tabBar.currentChanged.connect(self.update_tab) self.tabBar.currentChanged.connect(self.update_tab)
layout.addWidget(self.tabBar) layout.addWidget(self.tabBar)
@ -113,8 +103,6 @@ class Dialog(QDialog):
self.loadNotes() self.loadNotes()
elif tabIndex == 2: elif tabIndex == 2:
self.loadTasks() self.loadTasks()
elif tabIndex == 3:
self.loadHistory()
def startLoad(self): def startLoad(self):
self.edit.setDisabled(True) self.edit.setDisabled(True)
@ -168,7 +156,7 @@ class Dialog(QDialog):
def build_agenda_task_widget(self, item): def build_agenda_task_widget(self, item):
box = QHBoxLayout() box = QHBoxLayout()
frame = QFrame() frame = QGroupBox()
frame.setLayout(box) frame.setLayout(box)
state_button = QPushButton(text=f"{item.state or '-'}", maximumWidth=60) state_button = QPushButton(text=f"{item.state or '-'}", maximumWidth=60)
@ -227,9 +215,6 @@ class Dialog(QDialog):
def loadTasks(self): def loadTasks(self):
logging.warning("loadTasks not yet implemented") logging.warning("loadTasks not yet implemented")
def loadHistory(self):
logging.warning("loadHistory not yet implemented")
# Create the Qt Application # Create the Qt Application
if __name__ == "__main__": if __name__ == "__main__":