/srv/irclogs.ubuntu.com/2014/06/06/#ubuntu-autopilot.txt

balloonselopio, 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
elopioballoons: 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
elopioballoons: 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
balloonselopio, thanks I'll take a look17:45
balloonselopio, no the object is indeed the custom name17:46
balloonsbut the base qml is still textfield17:46
elopioballoons: yes, on the clock, I don't remember the name of the component.17:46
elopioit's like TextFieldWithDots17:46
elopioor something like that.17:46
balloonselopio, ahh17:46
balloonsclass LabelDots(toolkit_emulators.TextField):17:46
balloons    """Autopilot helper for the LabelDots component."""17:46
balloonsbrillant17:47
balloonsthe trouble is I'm digging myself in deeper to redoing the setup for this test :-)17:47
elopiothat's it. kudos to the clever autopilot developers that let us play with the weird inheritance in python and in QML.17:48
elopioballoons: redoing setups, I like that.17:48
balloonselopio, I'm treading carefully17:48
balloonsIt's just hard to see custom code not using the helpers17:48
balloonselopio, oO.. can we not handle TextArea's?17:49
elopioballoons: TextAreas I think that need a separate helper.17:50
balloonselopio, it should be able to inherit much of the textfield helper17:50
balloonsone of my inputs is a textarea...17:50
balloonssee, this is why we don't travel down the rabbit hole :-)17:50
elopioballoons: in QML, text area is not an extended text field.17:51
elopiobut yes, we can do many of the things through composition. Shouldn't be hard.17:51
elopioballoons: you can convince la_juyis to implement that one :)17:51
balloonselopio, ohh, I was going to do it.. hehe.. Julia is even better17:52
elopioballoons: even better if you two pair-program.17:53
balloonsI'm going to cheat and do the same with textarea for this hahah17:53
elopio:(17:53
balloonselopio, indeed if you inherit the textfield emulator it works fine17:56
balloonsso it's cheating for my needs, but I think I can ship it17:56
balloonswe'll still do a proper textarea helper, and I'll comment and link to a bug for it17:57
balloonselopio, https://bugs.launchpad.net/ubuntu-ui-toolkit/+bug/132735418:00
ubot5Ubuntu bug 1327354 in Ubuntu UI Toolkit "TextArea needs autopilot helper" [Undecided,New]18:00
balloonssee, I'm not so mean!18:00
elopiocgoldberg: 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!