diff --git a/bin/curvecalc b/bin/curvecalc --- a/bin/curvecalc +++ b/bin/curvecalc @@ -75,6 +75,16 @@ class Main(object): self.makeStatusLines(wtree.get_object("status")) + def onNewCurve(self, *args): + nc = self.wtree.get_object("newCurve") + entry = self.wtree.get_object("newCurveName") + # if you don't have songx, that should be the suggested name + entry.set_text("") + response = nc.run() + if response == 1: + self.curveset.new_curve(entry.get_text()) + nc.hide() + def refreshTheme(self): gtk.rc_reparse_all() reactor.callLater(1, self.refreshTheme)