-
beer2011
Thank you.
Compile & Execute in simulator is OK.
But, it can not operate at a real machine .
Try a little experiment , but I wonder if giving up ?
( In my case , it might have a time to change to 'Swift'...)
Again, Thank you! (^^/ -
beer2011
@JonB
Excuse me, and thank you.
Later, I'll try a new template.
For reference, post the error.
Undefined symbols for architecture i386:
"_fwrite$UNIX2003", referenced from:
_empty_output_buffer in libpythonista.a(libturbojpeg_la-jdatadst.o)
_term_destination in libpythonista.a(libturbojpeg_la-jdatadst.o)
"_putenv$UNIX2003", referenced from:
_tjTransform in libpythonista.a(libturbojpeg_la-turbojpeg.o)
_tjDecompressToYUV in libpythonista.a(libturbojpeg_la-turbojpeg.o)
_tjDecompress2 in libpythonista.a(libturbojpeg_la-turbojpeg.o)
_tjEncodeYUV2 in libpythonista.a(libturbojpeg_la-turbojpeg.o)
_tjCompress2 in libpythonista.a(libturbojpeg_la-turbojpeg.o)
ld: symbol(s) not found for architecture i386
clang: error: linker command failed with exit code 1 (use -v to see invocation)
-
beer2011
Hello, all.
In the XCODE's project , compile-time errors occurs .'PythonistaProjectTemplate.zip' -- 'Pythonista 1.5 – What's New (and What's Missing)' in olemoritz.net.
Or another new project file is , Will there somewhere ?
Please give me advice .
( I use the XCODE7.1.) -
beer2011
The reply to everyone who, thank you.
In fact, I, programming is amateur.
(For even English, but it is the same.sorry. ^^;; )
And to understand what has been taught, it is likely to take some time.
Again, thank you. -
beer2011
Hello, all.
Already some programs , I tried to add a little only , the function .
If you are interested , please try .
For those of the original author , thank you .SimpleRSSReader
https://gist.github.com/beer2011/fcc4aaeec2a0f489b8fa -
-
beer2011
Hello,All.
Error in appex script, can not be eliminated.
Please give me advice .
As the goal, From the open page (Internet), it is what you want to download and save images .
Thanks.http://news.goo.ne.jp/topstories/nation/379/8badd8f273cceb69bac12a775d978555.html?isp=00002 //u.xgoo.jp/img/goo.png Traceback (most recent call last): File "/private/var/mobile/Containers/Shared/AppGroup/1920E896-A5A8-4781-B249-EE90E9CC5C44/Documents/download_image.py", line 43, in <module> main() File "/private/var/mobile/Containers/Shared/AppGroup/1920E896-A5A8-4781-B249-EE90E9CC5C44/Documents/download_image.py", line 40, in main download(img_url) File "/private/var/mobile/Containers/Shared/AppGroup/1920E896-A5A8-4781-B249-EE90E9CC5C44/Documents/download_image.py", line 13, in download img = urllib2.urlopen(url) File "/private/var/mobile/Containers/Bundle/Application/BA72C9F4-3A16-4501-889D-1505A8733CDE/Pythonista.app/PlugIns/com.omz-software.Pythonista.PythonistaAction.appex/pylib/urllib2.py", line 128, in urlopen return _opener.open(url, data, timeout) File "/private/var/mobile/Containers/Bundle/Application/BA72C9F4-3A16-4501-889D-1505A8733CDE/Pythonista.app/PlugIns/com.omz-software.Pythonista.PythonistaAction.appex/pylib/urllib2.py", line 397, in open protocol = req.get_type() File "/private/var/mobile/Containers/Bundle/Application/BA72C9F4-3A16-4501-889D-1505A8733CDE/Pythonista.app/PlugIns/com.omz-software.Pythonista.PythonistaAction.appex/pylib/urllib2.py", line 259, in get_type raise ValueError, "unknown url type: %s" % self.__original ValueError: unknown url type: //u.xgoo.jp/img/goo.png
-
beer2011
@omz
Thank you , I was resolved ! (^^/
Always , I received a precise advice , we are surprised .
A new version(Pythonista) of the provision , we are looking forward . -
beer2011
@Sebastian
Thank you! It works,well!
And then, the sub menu was added to 'fruits'.
There may be a better way...# coding: utf-8 import ui import console class MyTableView(object): def __init__(self): self.list = [{'title': 'Vegitable'}, {'title': 'Fruits'}, {'title': 'Fish'}] self.tv = ui.TableView() self.tv.name = 'Kind' self.tv.delegate = self self.tv.data_source = self nv = ui.NavigationView(self.tv) nv.name = 'Foods' nv.present('sheet') def tableview_did_select(self, tableview, section, row): tv = ui.TableView() tv.name = self.list[row]['title'] if tv.name == 'Fruits': sub_ds = SubTableView() tv.data_source = sub_ds tv.delegate = sub_ds tableview.navigation_view.push_view(tv) else: tv.delegate = self tableview.navigation_view.push_view(tv) def tableview_number_of_sections(self, tableview): return 1 def tableview_number_of_rows(self, tableview, section): return len(self.list) def tableview_cell_for_row(self, tableview, section, row): cell = ui.TableViewCell() cell.text_label.text = self.list[row]['title'] return cell class SubTableView(object): def __init__(self): self.fruits = [{'title': 'Banana'}, {'title': 'Orenge'}, {'title': 'Grape'}] self.tv = ui.TableView() self.tv.delegate = self self.tv.data_source = self def tableview_did_select(self, tableview, section, row): tv = ui.TableView() tv.name = self.fruits[row]['title'] tv.delegate = self tableview.navigation_view.push_view(tv) def tableview_number_of_sections(self, tableview): return 1 def tableview_number_of_rows(self, tableview, section): return len(self.fruits) def tableview_cell_for_row(self, tableview, section, row): cell = ui.TableViewCell() cell.text_label.text = self.fruits[row]['title'] return cell ### main ######################## MyTableView()
-
beer2011
Hello, all.
This code do not work.
When you tap , it will not work. (~~;;)
Any suggestion,please...# coding: utf-8 import ui import console class MyTableView(object): def __init__(self): foods = [{'title': 'Vegitable'}, {'title': 'Fruits'}, {'title': 'Fish'}] self.list = ui.ListDataSource(foods) self.tv = ui.TableView() self.tv.name = 'Kind' self.tv.delegate = self.tv.data_source = self.list nv = ui.NavigationView(self.tv) nv.name = 'Foods' nv.present('sheet') def tableview_did_select(self, tableview, section, row): self.tv.name = self.list[row]['title'] self.tv.delegate = self.tv.data_source = self.list table_view.navigation_view.push_view(self.tv) def tableview_number_of_sections(self, tableview): return 1 def tableview_number_of_rows(self, tableview, section): return len(self.list) def tableview_cell_for_row(self, tableview, section, row): cell = ui.TableViewCell() cell.text_label.text = self.list return cell ### main ######################## MyTableView()