poulp / zenipy Goto Github PK
View Code? Open in Web Editor NEWCreate simple dialog with python and gtk
License: Do What The F*ck You Want To Public License
Create simple dialog with python and gtk
License: Do What The F*ck You Want To Public License
python-zenity
or zenipy
?
On Ubuntu 15.10 zenity windows created during python scripts using the library do not close until the entire program has finished running rather than when the window is done. For example, if you run the code below the zenity message box does not dissapear until after 100 seconds (though the result and control is returned when the user presses enter):
import pythonzenity
import time
a = pythonzenity.Message(text="Message in the bottle")
time.sleep(100)
Is there any plan for porting this to python3?
Linux Mint 19 with python 3.6
That's my code:
(theList is a list with 69 elements)
columns = ["Result"]
zenipy.zlist(columns, theList, title='check my memory', width=900, height=600, timeout=None)
the window height increases with the number of elements.
is zlist not scrollable?
For one of my scripts I'm needing the --forms command
Would it be possible to implement this ? :)
Running the Entry dialog, regardless of text entered, the empty string is always returned rather than the value entered.
In addition to this, the dialog's strings (title, prompt) are hard coded rather than being localized.
When running the color selection dialog, I choose a color, then click OK. The dialog hangs for a while then crashes IPython:
In [1]: from common import pythonzenity
In [2]: pythonzenity.ColorSelection()
/home/mchristensen/prog/embedded_pqa/common/pythonzenity/python_zenity.py:479: Warning: g_object_get_qdata: assertion `G_IS_OBJECT (object)' failed
return cs.dialog.get_color_selection().get_current_color().to_string()
Segmentation fault (core dumped)
home $
Installation seems to be broken -
$ pip install python-zenity
Downloading/unpacking python-zenity
Could not find any downloads that satisfy the requirement python-zenity
Cleaning up...
No distributions at all found for python-zenity
Storing debug log for failure in /Users/janispauls/.pip/pip.log
contents of pip.log:
------------------------------------------------------------
/Users/janispauls/python/zenity_demo/virtualenv/bin/pip run on Thu Dec 25 17:07:04 2014
Downloading/unpacking python-zenity
Getting page https://pypi.python.org/simple/python-zenity/
URLs to search for versions for python-zenity:
* https://pypi.python.org/simple/python-zenity/
Analyzing links from page https://pypi.python.org/simple/python-zenity/
Could not find any downloads that satisfy the requirement python-zenity
Cleaning up...
Removing temporary dir /Users/janispauls/python/zenity_demo/virtualenv/build...
No distributions at all found for python-zenity
Exception information:
Traceback (most recent call last):
File "/Users/janispauls/python/zenity_demo/virtualenv/lib/python2.7/site-packages/pip/basecommand.py", line 122, in main
status = self.run(options, args)
File "/Users/janispauls/python/zenity_demo/virtualenv/lib/python2.7/site-packages/pip/commands/install.py", line 278, in run
requirement_set.prepare_files(finder, force_root_egg_info=self.bundle, bundle=self.bundle)
File "/Users/janispauls/python/zenity_demo/virtualenv/lib/python2.7/site-packages/pip/req.py", line 1177, in prepare_files
url = finder.find_requirement(req_to_install, upgrade=self.upgrade)
File "/Users/janispauls/python/zenity_demo/virtualenv/lib/python2.7/site-packages/pip/index.py", line 277, in find_requirement
raise DistributionNotFound('No distributions at all found for %s' % req)
DistributionNotFound: No distributions at all found for python-zenity
Great project!
Would it be possible to get documentation about more than the calendar?
If I execute a method, like python.zenity.Calendar(), I get a calendar, I select a date, it is returned but the calendar window never goes away. It hangs around until I close it using the 'x' in the title bar.
Dialogs should go away after the value(s) have been returned.
In Ipython, the first call to pythonzenity.FileSelection() fails with the following error:
In [1]: from common import pythonzenity
In [2]: pythonzenity.FileSelection()
/home/dir/prog/common/pythonzenity/python_zenity.py:452: GtkWarning: IA__gtk_file_chooser_get_files: assertion `GTK_IS_FILE_CHOOSER (chooser)' failed
return file.dialog.get_filename()
On subsequent calls, the command silently returns and again, does not return any selected files.
According the the readme, you can install python-zenity however attempting to do so fails:
$ sudo pip install python-zenity
Downloading/unpacking python-zenity
Could not find any downloads that satisfy the requirement python-zenity
No distributions at all found for python-zenity
Storing complete log in /home/user/.pip/pip.log
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.