Exemplo n.º 1
0
 def createMonth(self):
     monat = month.lsthvmonth(self.beraterdata)                    # create new Month-Object
     monat.data["month"] =  self.monthselector.currentIndex()+1    # examine Month-Number from ComboBox
     monat.data["year"] = self.edtyear.value()                     # examine year from SpinBox
     monat.determineFee() 
     self.monthWin = editmonth.monthWindow(self.beraterdata,monat) # open new Month in editmonth-Window
     self.close()
Exemplo n.º 2
0
def main():
    app = QtGui.QApplication(sys.argv)            # Create new QT4 app
    global beraterdata
    beraterdata = settings.beraterData()              # load settings and personal information
    #    window = beraterApp(berater)                  # create MainMenu
    window = editmonth.monthWindow(beraterdata)
    
    if (not beraterdata.saved):
        QtGui.QMessageBox.critical(window,'Bitte Beraterdaten Eingeben','Konnte Beraterdaten nicht laden.\nBitte geben Sie die Beraterdaten ein.')
    sys.exit(app.exec_())
Exemplo n.º 3
0
 def openMonth(self):
     self.monthWin = editmonth.monthWindow(self.beraterdata,self.table.currentItem().month())
     self.close()