omz:forum

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

    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 0
    • Posts 1
    • Best 1
    • Controversial 0
    • Groups 0

    ric

    @ric

    1
    Reputation
    538
    Profile views
    1
    Posts
    0
    Followers
    0
    Following
    Joined Last Online

    ric Unfollow Follow

    Best posts made by ric

    • RE: Sqlite3 Browser

      A little nifty code I wrote to show the current working directory in the file browser. It works by pasting into class FilebrowserController in filebrowser.py. Tell me what you think :)

      def tableview_title_for_header(self, tableview, section):
      		lst = str(os.getcwd()).split("/")
      		for idx, item in enumerate(lst):
      			if len(item) > 20:
      				item = item[:20]+".."
      				lst[idx] = item
      		if len(lst) > 3:
      			return "../"+"/".join(lst[-3:])
      		else: return "/".join(lst)
      		
      
      posted in Pythonista
      ric
      ric

    Latest posts made by ric

    • RE: Sqlite3 Browser

      A little nifty code I wrote to show the current working directory in the file browser. It works by pasting into class FilebrowserController in filebrowser.py. Tell me what you think :)

      def tableview_title_for_header(self, tableview, section):
      		lst = str(os.getcwd()).split("/")
      		for idx, item in enumerate(lst):
      			if len(item) > 20:
      				item = item[:20]+".."
      				lst[idx] = item
      		if len(lst) > 3:
      			return "../"+"/".join(lst[-3:])
      		else: return "/".join(lst)
      		
      
      posted in Pythonista
      ric
      ric