balloons | elopio, I need to pick your brain for a minute. So I want to use the textfield emulator, but the app has defined it's own object that simply contains a textfield. How can I still use the helper? | 17:44 |
---|---|---|
elopio | balloons: if autopilot sees the name of the extended class, you can also extend TextField on python. Take a look at the clock, we are doing that. | 17:45 |
elopio | balloons: if autopilot sees TextField even if it's extended, then you won't have to do anything. This is the most common case. | 17:45 |
balloons | elopio, thanks I'll take a look | 17:45 |
balloons | elopio, no the object is indeed the custom name | 17:46 |
balloons | but the base qml is still textfield | 17:46 |
elopio | balloons: yes, on the clock, I don't remember the name of the component. | 17:46 |
elopio | it's like TextFieldWithDots | 17:46 |
elopio | or something like that. | 17:46 |
balloons | elopio, ahh | 17:46 |
balloons | class LabelDots(toolkit_emulators.TextField): | 17:46 |
balloons | """Autopilot helper for the LabelDots component.""" | 17:46 |
balloons | brillant | 17:47 |
balloons | the trouble is I'm digging myself in deeper to redoing the setup for this test :-) | 17:47 |
elopio | that's it. kudos to the clever autopilot developers that let us play with the weird inheritance in python and in QML. | 17:48 |
elopio | balloons: redoing setups, I like that. | 17:48 |
balloons | elopio, I'm treading carefully | 17:48 |
balloons | It's just hard to see custom code not using the helpers | 17:48 |
balloons | elopio, oO.. can we not handle TextArea's? | 17:49 |
elopio | balloons: TextAreas I think that need a separate helper. | 17:50 |
balloons | elopio, it should be able to inherit much of the textfield helper | 17:50 |
balloons | one of my inputs is a textarea... | 17:50 |
balloons | see, this is why we don't travel down the rabbit hole :-) | 17:50 |
elopio | balloons: in QML, text area is not an extended text field. | 17:51 |
elopio | but yes, we can do many of the things through composition. Shouldn't be hard. | 17:51 |
elopio | balloons: you can convince la_juyis to implement that one :) | 17:51 |
balloons | elopio, ohh, I was going to do it.. hehe.. Julia is even better | 17:52 |
elopio | balloons: even better if you two pair-program. | 17:53 |
balloons | I'm going to cheat and do the same with textarea for this hahah | 17:53 |
elopio | :( | 17:53 |
balloons | elopio, indeed if you inherit the textfield emulator it works fine | 17:56 |
balloons | so it's cheating for my needs, but I think I can ship it | 17:56 |
balloons | we'll still do a proper textarea helper, and I'll comment and link to a bug for it | 17:57 |
balloons | elopio, https://bugs.launchpad.net/ubuntu-ui-toolkit/+bug/1327354 | 18:00 |
ubot5 | Ubuntu bug 1327354 in Ubuntu UI Toolkit "TextArea needs autopilot helper" [Undecided,New] | 18:00 |
balloons | see, I'm not so mean! | 18:00 |
elopio | cgoldberg: do you know of any changes on autopilot to the pid property of the app proxy object? | 18:17 |
Generated by irclog2html.py 2.7 by Marius Gedminas - find it at mg.pov.lt!