keymap_test.py 文件源码

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

项目:stig 作者: rndusr 项目源码 文件源码
def test_builtin_keys_have_precedence_over_keychain_if_no_keychain_started(self):
        self.km.bind('z', 'impossible action', context='list2')  # This should go to an Edit widget
        self.mainw.focus_position = 1  # Focus list2
        self.press_key('z')
        self.assert_current_keychain()
        self.assert_action(exp_action=None, exp_count=0, exp_widget=None)
        self.assert_active_keychains()
        self.assertEqual(self.listw2.focus.edit_text, 'z')
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号