omz:forum

    • Register
    • Login
    • Search
    • Recent
    • Popular
    1. Home
    2. beer2011

    Welcome!

    This is the community forum for my apps Pythonista and Editorial.

    For individual support questions, you can also send an email. If you have a very short question or just want to say hello — I'm @olemoritz on Twitter.


    • Profile
    • Following 0
    • Followers 0
    • Topics 7
    • Posts 38
    • Best 2
    • Controversial 0
    • Groups 0

    beer2011

    @beer2011

    2
    Reputation
    1239
    Profile views
    38
    Posts
    0
    Followers
    0
    Following
    Joined Last Online

    beer2011 Unfollow Follow

    Best posts made by beer2011

    • SimpleRSSreader

      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

      posted in Pythonista
      beer2011
      beer2011
    • RE: [Resolved!] Error in appex's script

      @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 .

      posted in Pythonista
      beer2011
      beer2011

    Latest posts made by beer2011

    • RE: Template Compile ERROR

      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! (^^/

      posted in Pythonista
      beer2011
      beer2011
    • RE: Template Compile ERROR

      @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)


      posted in Pythonista
      beer2011
      beer2011
    • Template Compile ERROR

      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.)

      posted in Pythonista
      beer2011
      beer2011
    • RE: SimpleRSSreader

      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.

      posted in Pythonista
      beer2011
      beer2011
    • SimpleRSSreader

      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

      posted in Pythonista
      beer2011
      beer2011
    • RE: [Share Code] TableView, idea. When you need a lot of them

      Very good!
      This kind of I wanted .
      Thank you.

      posted in Pythonista
      beer2011
      beer2011
    • [Resolved!] Error in appex's script

      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.

      download_image.py

      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
      
      
      posted in Pythonista
      beer2011
      beer2011
    • RE: [Resolved!] Error in appex's script

      @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 .

      posted in Pythonista
      beer2011
      beer2011
    • RE: TableView do not work?

      @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()
      
      
      posted in Pythonista
      beer2011
      beer2011
    • TableView do not work?

      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()
      
      
      posted in Pythonista
      beer2011
      beer2011