-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
e1c4cb8
commit f1f58e4
Showing
7 changed files
with
98 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,3 @@ | ||
from .loader import Builder, AppBuilder | ||
|
||
__version__ = '0.1.0' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
[metadata] | ||
description-file = README.md |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
from setuptools import setup | ||
import formation | ||
import sys | ||
|
||
requirements = ['lxml', 'Pillow>=6.0.0', 'pyscreenshot'] | ||
if sys.platform == 'win32': | ||
requirements.append('pywin32') | ||
|
||
setup( | ||
name='formation', | ||
packages=['hoverset', 'hoverset.data', 'hoverset.platform', 'hoverset.ui', 'hoverset.util', | ||
'formation', | ||
'studio', 'studio.feature', 'studio.lib', 'studio.parsers', 'studio.ui'], | ||
version=formation.__version__, | ||
license='MIT', | ||
description='Simplify GUI development in python', | ||
author='Hoverset', | ||
author_email='[email protected]', | ||
url='https://github.com/ObaraEmmanuel/Formation', | ||
keywords=['formation', 'gui', 'graphical-user-interface', 'drag drop', 'tkinter', 'hoverset'], | ||
install_requires=requirements, | ||
package_data={ | ||
'hoverset.data': ['image.*'], | ||
'hoverset.ui': ['themes/*'], | ||
'studio': ['resources/*/*'] | ||
}, | ||
entry_points={ | ||
'gui_scripts': [ | ||
'formation-studio = studio.main:main', | ||
] | ||
}, | ||
classifiers=[ | ||
'Development Status :: 3 - Alpha', | ||
# Chose either "3 - Alpha", "4 - Beta" or "5 - Production/Stable" | ||
'Intended Audience :: Developers', | ||
'Topic :: Software Development :: Build Tools', | ||
'License :: OSI Approved :: MIT License', | ||
'Programming Language :: Python :: 2.7', | ||
'Programming Language :: Python :: 3', | ||
'Topic :: Software Development :: Libraries :: Python Modules', | ||
'Topic :: Utilities', | ||
'Topic :: Software Development :: User Interfaces', | ||
'Operating System :: OS Independent' | ||
], | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
import os | ||
|
||
from hoverset.ui.widgets import Frame, Label | ||
from hoverset.ui.dialogs import MessageDialog | ||
from hoverset.data.images import load_tk_image | ||
|
||
import formation | ||
|
||
|
||
class About(Frame): | ||
|
||
def __init__(self, parent): | ||
super().__init__(parent) | ||
self.config(**self.style.dark) | ||
image = load_tk_image(os.path.join("..", "resources", "images", "logo.png"), 400, 129) | ||
Label(self, image=image, **self.style.dark).pack(side="top", fill="y") | ||
Label(self, text="Version {} alpha".format(formation.__version__), | ||
**self.style.dark_text).pack(side="top", fill="y", pady=15) | ||
Label(self, text="Make designing user interfaces in python a breeze!", | ||
**self.style.dark_text).pack(side="top", fill="y", pady=5) | ||
copy_right = "Copyright © 2019-2020 Hoverset group" | ||
Label(self, text=copy_right, **self.style.dark_text_passive).pack(side="top", fill="y") | ||
self.pack(fill="both", expand=True) | ||
|
||
|
||
def about_window(parent): | ||
dialog = MessageDialog(parent, About) | ||
dialog.title("Formation") | ||
dialog.focus_set() | ||
return dialog |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
pyscreenshot | ||
Pillow>=6.2.1 | ||
lxml | ||
pywin32 |