-class AboutDialog2(QDialog):
- def __init__(self, *args, **kwargs):
- QDialog.__init__(self, *args, **kwargs)
-
- txt="""
-<p> A program to monitor the women's cycle. Good for planning (or acting ;-).
-Inspired by "MyDays" app which is (was?) available for Java ME capable phones.
-
-<p> WARNING!!! This is not accurate nor correct! You cannot trust
-this program (or any other program) for accurate predictions!
-(after all, this is about women... how can one be sure :-).
-
-<p> Copyright © 2010, Stefanos Harhalakis <v13@v13.gr>
-
-<p> Send comments and bug reports to the above address.
-
-<p> This program can be distributed under the terms of the GNU public
-license, version 3 or any later.
- """
-
- self.setWindowTitle("About MaeDays")
-
- # This freaking thing is hard
- # It needs two layouts, one extra widget, the fingerscrollable
- # property set to true *and* setWidgetResizable(True)
- self.l0=QVBoxLayout(self)
-
- self.q=QScrollArea(self)
- self.q.setWidgetResizable(True)
- self.q.setProperty('FingerScrollable', True)
- self.w1=QWidget(self.q)
-
- self.l=QVBoxLayout(self.w1)
-
- self.ltitle=QLabel("MaeDays", self.w1)
- self.ltitle.setObjectName("title")
- self.ltitle.setSizePolicy(QSizePolicy.Expanding, QSizePolicy.Preferred)
- self.ltitle.setAlignment(Qt.AlignCenter)
- self.l.addWidget(self.ltitle)
-
- self.label=QLabel(txt, self.w1)
- self.label.setWordWrap(True)
- self.label.setTextFormat(Qt.RichText)
- self.label.setAlignment(Qt.AlignJustify)
-
- self.l.addWidget(self.label)
- self.q.setWidget(self.w1)
- self.l0.addWidget(self.q)
-
- self.ltitle.setStyleSheet("""
- QLabel {
- font-size: 25pt;
- color: rgb(192,192,192);
- margin-bottom: 0.5ex;
- }
- """)
-