-
Notifications
You must be signed in to change notification settings - Fork 28
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
vanilla.Tabs bug when vanilla.List2 used with textField inside #188
Comments
super strange how the |
I've tracked this down to the EditTextList2Cell being a subclass of Group. As soon as the group has a subview added to it, things go haywire. I ave no idea why a view (the subview) inside of a view (the group) inside of another view (the table) inside of another view (the scroll view) would affect a view outside of that hierarchy. |
Here's the test for when I try to fix this in the future: import vanilla
import objc
objc.setVerbose(True)
class Test:
def __init__(self):
self.w = vanilla.Window((500, 300))
self.w.list = vanilla.List2(
(10, 10, 200, 200),
[
dict(value=50, text="A")
],
columnDescriptions=[
# dict(
# identifier="value",
# cellClass=vanilla.SliderList2Cell
# ),
dict(
identifier="text",
cellClass=vanilla.EditTextList2Cell
),
]
)
self.w.tab = vanilla.Tabs((230, 10, 200, 100), ["One", "Two"])
self.w.open()
from vanilla.test.testTools import executeVanillaTest
executeVanillaTest(Test) |
Python : 3.11.2
Vanilla : 0.3.1.dev10+g8303f24
pyobj : 9.0.1
With the following code :
This is what I got when it's run from Terminal :
And from DrawBot :
Note that if I remove the textField column, it works as expected when run from the terminal.
I presume that is maybe again a problem with
pyobj
?The text was updated successfully, but these errors were encountered: