コード例 #1
0
ファイル: builder.py プロジェクト: GhostBSD/apace
    def test_connect_alias(self):
        app = App2()
        Builder.auto_connect_by_name(app, self.builder)

        window = self.builder.get_object('window')
        window.emit('show')
        self.assertEqual(app.messages, ['called by alias'])
コード例 #2
0
ファイル: builder.py プロジェクト: dreamsxin/quickly
    def test_connect_alias(self):
        app = App2()
        Builder.auto_connect_by_name(app, self.builder)

        window = self.builder.get_object('window')
        window.emit('show')
        self.assertEqual(app.messages, ['called by alias'])
コード例 #3
0
ファイル: builder.py プロジェクト: GhostBSD/apace
    def test_connect_auto(self):
        app = App()
        Builder.auto_connect_by_name(app, self.builder)

        # glade does not have on_window_show
        window = self.builder.get_object('window')
        window.emit('show')
        self.assertEqual(app.messages, ['on_window_show'])
コード例 #4
0
ファイル: builder.py プロジェクト: dreamsxin/quickly
    def test_connect_auto(self):
        app = App()
        Builder.auto_connect_by_name(app, self.builder)

        # glade does not have on_window_show
        window = self.builder.get_object('window')
        window.emit('show')
        self.assertEqual(app.messages, ['on_window_show'])