-
-
Notifications
You must be signed in to change notification settings - Fork 689
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
[widget Audit] toga.OptionContainer #1996
Merged
freakboy3742
merged 20 commits into
beeware:main
from
freakboy3742:audit-optioncontainer
Aug 10, 2023
Merged
Changes from 1 commit
Commits
Show all changes
20 commits
Select commit
Hold shift + click to select a range
932efb0
Update docs and core API for OptionContainer.
freakboy3742 58bdf2e
Core tests converted to Pytest, with 100% coverage.
freakboy3742 ec6176d
Cocoa implementation to 100% coverage.
freakboy3742 f8eb53f
GTK optioncontainer coverage to 100%.
freakboy3742 fbdf363
Introduce a small explicit delay to work around intermittent test fai…
freakboy3742 4792170
Merge branch 'audit-splitcontainer' into audit-optioncontainer
freakboy3742 b6d05f9
Lower the horizontal limit that identifies full width.
freakboy3742 53abedd
Merge branch 'audit-splitcontainer' into audit-optioncontainer
freakboy3742 49b81b2
Merge branch 'audit-splitcontainer' into audit-optioncontainer
freakboy3742 15624b5
Merge branch 'audit-splitcontainer' into audit-optioncontainer
freakboy3742 00b46fb
Merge branch 'main' into audit-optioncontainer
freakboy3742 eac7feb
Merge branch 'main' into audit-optioncontainer
freakboy3742 a46e14c
Merge branch 'main' into audit-optioncontainer
freakboy3742 7747857
Merge branch 'main' into audit-optioncontainer
freakboy3742 76e8887
Correct some spelling errors.
freakboy3742 02f7533
Merge branch 'main' into audit-optioncontainer
freakboy3742 125ddf2
Documentation fixes
mhsmith d4b6209
Winforms OptionContainer to 100%
mhsmith 7f222a5
Add implementation of tab_enabled for cocoa.
freakboy3742 fc22290
Add protection against future removal of a private method.
freakboy3742 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
from System.Windows.Forms import TabControl | ||
|
||
from .base import SimpleProbe | ||
|
||
|
||
class OptionContainerProbe(SimpleProbe): | ||
native_class = TabControl | ||
disabled_tab_selectable = True | ||
|
||
def select_tab(self, index): | ||
self.native.SelectedIndex = index | ||
|
||
def tab_enabled(self, index): | ||
return self.native.TabPages[index].Enabled |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Any particular reason for making a subclass for this? It's only ever subclassed by Widget, and it's not used as a basis for isolated testing; I'm not sure I see the benefit of a separate base class for this.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's also subclassed by Window, and used in the position and size methods. This was required by the OptionContainer tests, because they rely on the window being 640x480 CSS pixels.