__init__.py 文件源码

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

项目:simbuto 作者: nobodyinperson 项目源码 文件源码
def __init__(self):
        """ class constructor
        """
        # initially set an empty configuration
        self.set_config(configparser.ConfigParser())
        # set up the quit signals
        self.setup_signals(
            signals = [signal.SIGINT, signal.SIGTERM, signal.SIGHUP],
            handler = self.quit
        )
        # can't use Gtk.main() because of a bug that prevents proper SIGINT
        # handling. use Glib.MainLoop() directly instead.
        self.mainloop = GLib.MainLoop() # main loop


    ##################
    ### Properties ###
    ##################
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号