comboboxcalendar.py 文件源码

python
阅读 24 收藏 0 点赞 0 评论 0

项目:google-tasks-indicator 作者: atareao 项目源码 文件源码
def __init__(self, window, format="dmy", separator='/', value = datetime.date.today()):
        Gtk.HBox.__init__(self)
        self.format = format
        self.separator = separator
        self._window = window
        self.entry = Gtk.Entry()
        self.entry.set_editable(False)
        self.button = Gtk.Button()
        self.button.add(Gtk.Arrow.new(Gtk.ArrowType.DOWN, Gtk.ShadowType.IN))
        self.button.connect('clicked', self.on_button)
        self.pack_start(self.entry, 0, 0, 0)
        self.pack_start(self.button, 0, 0, 0)
        self.month_changed = False
        self.set_date(value)
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号