nitipit / appkit Goto Github PK
View Code? Open in Web Editor NEWGnome desktop application framework based on Webkit, HTML5 and Python
Home Page: http://nitipit.github.io/appkit
License: MIT License
Gnome desktop application framework based on Webkit, HTML5 and Python
Home Page: http://nitipit.github.io/appkit
License: MIT License
These css framework can bring responsive design to application.
Define the specific version in setup.py or requirment.pip is preference
So, the way to import lib
from appkit import App
from appkit.tool import setup
setup();
To Do.
pip install --user
to Install app in ~/.local/lib/python2.7/site-packages/.desktop
file
<title>
<link rel="icon">
Related topic ?
- Epiphany application mode
QTWebkit will make Appkit based applications wide open to other desktop, such as KDE, Mac and Windows.
Anyway, since QT isn't preinstalled on Mac and Windows. It's still hard for user to reach Appkit's based application
I get the following error when trying the example :
Traceback (most recent call last):
File "test.py", line 3, in
from appkit.api.v0_2_6 import App
File "/home/areski/.virtualenvs/appkit/local/lib/python2.7/site-packages/appkit/api/v0_2_6.py", line 1, in
from appkit.app import App
File "/home/areski/.virtualenvs/appkit/local/lib/python2.7/site-packages/appkit/app.py", line 3, in
from gi.repository import Gtk, Gdk, WebKit
ImportError: No module named gi.repository
I imagine that we should add PyGI as a dependency ?
https://wiki.gnome.org/PyGI
Appkit should have package builder & installer to deliver applications to users ?
Docstring let developers understand code faster, It's bad that appkit has very little docstring right now.
app.route('/path/to/function/')
/path/to/function/
, not /p/path/to/function/
Provide option in framework & application to run in 2 modes
WebKitGTK
Hi Nitipit Nontasuwan,
Description of the issue:
NSSavePanel dialog is not working in Mac OS Catalina version.
Details:
I am using python 3.7.4 (64-bit) for building our web application in Mac OS.
Observation:
Before Catalina:
from AppKit import NSSavePanel
>>> NSSavePanel.savePanel()
<NSSavePanel: 0x7feb46a539e0>
In Catalina:
NSSavePanel.savePanel()
2020-01-29 10:53:05.691 Python[13337:56053] *** Assertion failure in +[NSServiceViewController currentAppIsViewService], /BuildRoot/Library/Caches/com.apple.xbs/Sources/ViewBridge/ViewBridge-462/NSViewService.m:140
2020-01-29 10:53:05.691 Python[13337:56053] *** Assertion failure in +[NSServiceViewController currentAppIsViewService], /BuildRoot/Library/Caches/com.apple.xbs/Sources/ViewBridge/ViewBridge-462/NSViewService.m:140
2020-01-29 10:53:05.736 Python[13337:56356] +[NSXPCSharedListener endpointForReply:withListenerName:]: an error occurred while attempting to obtain endpoint for listener 'com.apple.view-bridge': Connection interrupted
Expected behavior:
It shows save file dialog to user.
Actual behavior:
It is not showing save file dialog to user.
Issue that should be taken care
#12
for example
from appkit.v0_2_4 import app
This can be a good practice and a cleaner way for developers to develope application with Appkit
pip3 install AppKit
or pip install AppKit
i keep getting the followingERROR: Command errored out with exit status 1: /Library/Frameworks/Python.framework/Versions/3.8/bin/python3.8 /Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/pip install --ignore-installed --no-user --prefix /private/tmp/pip-build-env-ejsn87m7/overlay --no-warn-script-location --no-binary :none: --only-binary :none: -i https://pypi.org/simple -- setuptools wheel pycairo Check the logs for full command output.`
The core xml reader from python is too strict.. , beautifulsoup4 is more flexible for parsing html
having a web inspector will be good for debuging.
add XML configuration file for applications in the application root folder
config.xml
<appname>Myapp</appname>
<access>local</access> OR network restrict access in external browser
<window>
<fullscreen>true</fullscreen>
<toplevel>true</toplevel>
<height>800<height>
<width>600<width>
<Position>center</Position>
<Icon>/path/to/myicon</icon>
</window>
thinking about using your application to build some cool stuff but is missing some features for easy devlopment maybe some options need to be added but am not very familiar with gtk webkit yet.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.