View Code? Open in Web Editor
NEW
This project forked from sankluj /pywidget
A set of GUI tools for Python and Pyglet. It integrates into your event loop and your event handler
License: BSD 3-Clause "New" or "Revised" License
pywidget3's People
Contributors
Stargazers
Watchers
pywidget3's Issues
link to pyglet
link to nehe pyglet code
write a sample....
using clipping and pyglet open gl commands
an application can draw directly to any region on the screen
the plain container could be used to allow keep track of a screen region.
this is an alternative to having the opengl code always
behind the widgets, or
in a fixed screen location.
depends on gh-26
use a pyglet function to display an image in a widget
should be possible to set the color as a parameter for the constructor
instead of using html font call in the text.
probably related to
gh-18 widgets should not allow mouse clicks to pass down to lower widgets
and the mouse handling generally
the pyglet code is built into the classes.
it should be refactored to make it separate.
it would then be possible to target other frameworks,
such as PyOpenGL
not strictly necessary,
since it is running inside an opengl app,
but it would be useful.
after each milestone
also, mark is released (in github)
layers/parents issue must be completed first
see: gh-3
need to decide how to control tab order.
travelling the visual tree, geometric order, or application specified.
install python 3.4
install pyglet
install PyWidget3
import pyglet
create pyglet window
create widgets
create a main widget (... could be a hbox or vbox or dialog....)
add main widget to pyglet draw code
add main widget to pylet event handlers
only one event handler per opengl/os window )
otherwise overlapping windows will not work correctly.
break issues and enhancements into manageable chunks, and make a plan for releases.
use milestones and labels
add a parent to the constructor.
so that when a combo box is selected,
or a when a dialog gains focus, it can ask its parent to move it to the top.
the _elements member will need to be changed from a dictionary to a sorted dictionary
create a dictionary of colors that can be queried
provide for gradient fill too.
Something basic,
drive lists, paths,
listbox of files
edit box for name.
no icons
need to be able to enter and edit simple text,
write a test/sample and
document it
the radio-button is misnamed.
it is really a combobox.
update shape support.
no need to change much,
more in-depth drawing support would be handled by drawing with pyglet in the canvas widget
create a line shape.
include start/end/colors
download,
getting started,
samples
if dialogs are put together in an HBox or VBox
they overlap because the top bar is not included in the size computation.
need to have a radio button widget,
and it will need to have a container widget to manage the click/unclick messages
text as a property is consistent with edit box,
and cleaner interface
will the hbox or vbox do?
it needs a scroll bar (slider)
create a container width,
for use as a main window
similar to hbox or vbox,
but doesn't impose a layout.
it only serves to unify the draw and mouse events
to support overlapped windows.
document it.
add to test programs.
replace current readme.md with a good start page.
create a good start page for the wiki, too
if a c ombobox is near the bottom of the screen, it can go off the bottom of the screen.
to totally correct this, will need to have a scrollable listbox.
to better reflect updates and fork,
rename project to PyWidget3
but, combobox-test and CharacterTest.py both work ok.
the package structure and code relying on it are wrong.
more samples, particularly with new colors
and with 3d content handled by pyglet
show examples,
to show off what it looks like.
for example, when there are two dialogs
each with a button
and the dialogs overlap
then the highlighting and clicks can happen on both buttons
see also gh-17
see also gh-21