omz:forum

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

    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

    Topics created by beer2011

    • beer2011

      Template Compile ERROR
      Pythonista • question • • beer2011

      6
      0
      Votes
      6
      Posts
      5807
      Views

      JonB

      Which machine? is it 64 bit? in that case, use the beta template, and carefully read the previous threads on how to get it working.

    • beer2011

      SimpleRSSreader
      Pythonista • share • • beer2011

      8
      1
      Votes
      8
      Posts
      5723
      Views

      Phuket2

      @beer2011 , understand. I am also learning. Still brought up a good discussion. I hadn't been aware of this proble. A tricky one.

    • beer2011

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

      3
      0
      Votes
      3
      Posts
      2952
      Views

      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

      TableView do not work?
      Pythonista • • beer2011

      3
      0
      Votes
      3
      Posts
      3497
      Views

      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

      About file switcher?
      Pythonista • • beer2011

      2
      0
      Votes
      2
      Posts
      1454
      Views

      beer2011

      Sorry... Let me change question contents.
      In 'Pythonista', will the history of the open file be recorded?
      Any hints? Thanks.

    • beer2011

      about 'TextField'
      Editorial • • beer2011

      8
      0
      Votes
      8
      Posts
      5760
      Views

      beer2011

      @omz, Thanks!

      It was able to do well.

      It seems that I was doing that it was completely different. (- -;;

      And update of Pythonista is also carried out to expectation.

      alt text

    • beer2011

      In python scratchpad....
      Editorial • • beer2011

      3
      0
      Votes
      3
      Posts
      2655
      Views

      beer2011

      @omz

      Thanks!
      I am glad if you correspond some day...