comparison engine/python/fife/extensions/pychan/widgets/__init__.py @ 616:c770794d0a4a

Added a simple percentage bar widget along with a quick demo in the sliders portion of the pychan_demo. Note: I have not tested the foreground image feature yet. fixes[t:411]
author prock@33b003aa-7bff-0310-803a-e67f0ece8222
date Mon, 27 Sep 2010 15:38:09 +0000
parents 64738befdf3b
children
comparison
equal deleted inserted replaced
615:6f3f5686a56e 616:c770794d0a4a
42 from textbox import TextBox 42 from textbox import TextBox
43 from listbox import ListBox 43 from listbox import ListBox
44 from dropdown import DropDown 44 from dropdown import DropDown
45 from scrollarea import ScrollArea 45 from scrollarea import ScrollArea
46 from slider import Slider 46 from slider import Slider
47 from percentagebar import PercentageBar
47 48
48 # Global Widget Class registry 49 # Global Widget Class registry
49 50
50 WIDGETS = { 51 WIDGETS = {
51 # Containers 52 # Containers
57 58
58 # Simple Widgets 59 # Simple Widgets
59 "Icon" : Icon, 60 "Icon" : Icon,
60 "Label" : Label, 61 "Label" : Label,
61 "ClickLabel" : ClickLabel, 62 "ClickLabel" : ClickLabel,
63 "PercentageBar" : PercentageBar,
62 64
63 # Button Widgets 65 # Button Widgets
64 "Button" : Button, 66 "Button" : Button,
65 "CheckBox" : CheckBox, 67 "CheckBox" : CheckBox,
66 "RadioButton" : RadioButton, 68 "RadioButton" : RadioButton,