Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

page.py模块的几个问题 #64

Open
Wenfeng-Zhang opened this issue Jun 14, 2023 · 0 comments
Open

page.py模块的几个问题 #64

Wenfeng-Zhang opened this issue Jun 14, 2023 · 0 comments

Comments

@Wenfeng-Zhang
Copy link

dayu_widgets/page.py
1: 92行
self._current_page_spin_box.valueChanged.connect(self._emit_page_changed)
信号槽不放在底下对应self.bind之后,返回的是MSpinBox控件上次的数值

2:140行
def _slot_change_current_page(self, offset): self.set_field("current_page", self.field("current_page") + offset) self._emit_page_changed()
self._emit_page_changed()会导致self._pre_button和self._next_button点击时发送两次信号

3:108行
self.bind("total_page", self._current_page_spin_box, "maximum")
设置了这个bind以后,self._current_page_spin_box.setMinimum(1) 失效

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant