Forum Archive

Editing CSS files

Kenbo01

I'm using Framework7 with Pythonista to create applications that have a proper ios7 look-and-feel. It's working quite well, and I'm happy to share examples if anyone's interested.

One frustration I'm having though is that I can't edit .css files from with the Pythonista editor. This means I have to edit them on my computer and then re sync to Pythonista using Dropbox. Only takes a few seconds, but relies on me having my PC or laptop nearby.

I know that .js and .html files can be edited directly, so not sure why .css editing is not supported. Accidental?

Any fixes or workarounds?

Thanks

Ken

briarfox

@Kenbo01 I'd really like to see an example. sounds great.

@omz I'd also like to add to the list .cfg and .tpl for the included bottle module. I usually have to append .txt to the end to allow viewing.

derickfay

Editorial 1.1 added the ability to specify additional editable file types - perhaps this is coming in Pythonista 1.5?

bee18

What is Framework7?

omz

I think @Kenbo01 is referring to this:

http://www.idangero.us/framework7

Kenbo01

Yes, @omz is right. Basically you use bottle as a webserver. Then statically serve the files comprising Framework7 (open source) including .css and .js along with pages dynamically generated in Pythonista. I've only done a very basic POC but you could get some very good results with a bit of effort. Even has pull to refresh implemented in Javascript.

Pablo

@Kenbo01: i'd like to see an example of this, and to have more details as to what your workflow is and how you integrate framework7 with pythonista.

Thanks in advance.

Kenbo01

Ok, can put something up on Github later today.

It will basically look and respond identically to this:

http://www.idangero.us/framework7/dist/