~shritesh/nepdate/quickly_trunk

« back to all changes in this revision

Viewing changes to nepdate/NepdateWindow.py

  • Committer: Shritesh Bhattarai
  • Date: 2011-05-22 07:29:56 UTC
  • Revision ID: shriteshb@gmail.com-20110522072956-uhald2eqhhq60lue
removed couchDb

Show diffs side-by-side

added added

removed removed

Lines of Context:
24
24
 
25
25
from nepdate_lib import Window
26
26
from nepdate.AboutNepdateDialog import AboutNepdateDialog
27
 
from nepdate.PreferencesNepdateDialog import PreferencesNepdateDialog
28
27
from nepdateconv import NepaliDateConverter
29
28
 
30
29
# See nepdate_lib.Window.py for more details about how this class works
34
33
    def finish_initializing(self, builder): # pylint: disable=E1002
35
34
        """Set up the main window"""
36
35
        super(NepdateWindow, self).finish_initializing(builder)
37
 
 
38
36
        self.AboutDialog = AboutNepdateDialog
39
 
        self.PreferencesDialog = PreferencesNepdateDialog
40
37
 
41
38
        # Code for other initialization actions should be added here.
42
 
    
43
39
    def on_btn_bs_ad_clicked(self, widget, data=None):
44
40
        converter = NepaliDateConverter()
45
41
        bs_year = self.ui.spin_bs_year.get_value_as_int()
56
52
        ad_day = self.ui.spin_ad_day.get_value_as_int()
57
53
        (bs_year,bs_month,bs_day) = converter.ad2bs((ad_year,ad_month,ad_day))
58
54
        self.ui.lbl_ad_bs.set_text("B.S. : %d - %d - %d" % (bs_year, bs_month, bs_day))
59
 
        
60
 
 
61
55