?!?
@ccc, some stupid questions. I have never participated in such a thing before.
- Eastern time, which eastern time? Is gmt offset better?
- Ok, we create a repo, is suppose to be private/public. How do we infom you of the repo? Just a post here? Somehow that does not seem right.
Am I qualified to enter? ;)
Anyway, here's a start:
ui_stub_generator.py [Gist]
@omz , lol. I have almost finished mine. I h think I have done a good job. I will not look at yours yet, I want to finish 100% on my own first. It's taken me many hours, I am sure it took you all of 5 mins 😭
But you know @ccc, is very correct. That's why I have taken so long, I keep revising.
- MartinPacker
As @ccc is a fellow IBMer :-) I understand his meaning of Eastern to be "East Coast USA" i.e. 5 hours behind GMT.
(Mentioning IBM as we have a variant of English all our own - as do most large organisations.) :-)
As a Native New Yorker, Eastern Standard Time or Eastern Daylight Time (don't axe me to define the difference!) is New York Time. I was actually going to put Swiss Time because that home for me. But what I was really after was to give everyone all of Sunday to complete their work. Anyway, you have until 8am New York Time to get it done. You can use or the iOS Clock app to calculate your local time. As Martin sayz, we at IBM live this on a weekly basis and many IBMers have the muscle memory to be able tell you the current time in Bejing, Bangalore, New York, and Silicon Valley without pausing. International is part of who we are.
The repo should be open. You can drop the URL here in this thread.
@omz of course you are eligible to participate!! I like @Phuket2 will avoid looking at other submissions while I work on my own.
Rule 0 was implied in the initial write up: you must use the
inspectmodule to get the structure of the
uimodule.
There are two PEP8 rules that your output is allowed to break: you can put
passon the same line as the preceding line and you don't need blank lines if you don't want them.
Thus you could have:
i_will_survive = True class DarkStar(object): def __init__(self): pass def draw(self): pass class TheOtherOne(): pass the_eleven = 11
Oh... I forgot, you need the
variablesin addition to the classes, functions, and methods to really get full auto completion.
@ccc , I am in the dark already.
Variables?
def _bind_action(v, action_str, f_globals, f_locals, attr_name='action'):
pass
If I have the above, does that mean I have variables? Sorry as I say, first time for me.
There. (It's meant to generate a stub for
_ui. The
uimodule is written in Python and can be copied over from the app.)
I will try to roll away the dew...
I meant module level variables that type ahead in Pythonista would suggest like:
ui.ACTIVITY_INDICATOR_STYLE_WHITE_LARGE.
Ok, my one is here
I didn't exactly follow the challenge. But I am glad it's finished, can look at the other ones now.
@omz , the -2 is not about your submission, but about the edge cases in ui.py etc.... 😜
But out of interest, is the convert tabs tools menu item a call to inspect.cleandoc()?
In an ideal world, would you run that over your modules such as ui and dialogs when you publish, or do you do something else?
).
- Webmaster4o....