diff --git a/dist/pgw-0.0.1-py3-none-any.whl b/dist/pgw-0.0.1-py3-none-any.whl deleted file mode 100644 index 27b66a2..0000000 Binary files a/dist/pgw-0.0.1-py3-none-any.whl and /dev/null differ diff --git a/dist/pgw-0.0.1.tar.gz b/dist/pgw-0.0.1.tar.gz deleted file mode 100644 index 5b8f64f..0000000 Binary files a/dist/pgw-0.0.1.tar.gz and /dev/null differ diff --git a/dist/pgw-0.0.2-py3-none-any.whl b/dist/pgw-0.0.2-py3-none-any.whl deleted file mode 100644 index 13ae600..0000000 Binary files a/dist/pgw-0.0.2-py3-none-any.whl and /dev/null differ diff --git a/dist/pgw-0.0.2-py3.7.egg b/dist/pgw-0.0.2-py3.7.egg deleted file mode 100644 index ca4da61..0000000 Binary files a/dist/pgw-0.0.2-py3.7.egg and /dev/null differ diff --git a/dist/pgw-0.0.2.tar.gz b/dist/pgw-0.0.2.tar.gz deleted file mode 100644 index a3e6b6c..0000000 Binary files a/dist/pgw-0.0.2.tar.gz and /dev/null differ diff --git a/dist/pgw-0.0.3-py3-none-any.whl b/dist/pgw-0.0.3-py3-none-any.whl deleted file mode 100644 index cbd2d4d..0000000 Binary files a/dist/pgw-0.0.3-py3-none-any.whl and /dev/null differ diff --git a/dist/pgw-0.0.3-py3.7.egg b/dist/pgw-0.0.3-py3.7.egg deleted file mode 100644 index e9f05a1..0000000 Binary files a/dist/pgw-0.0.3-py3.7.egg and /dev/null differ diff --git a/dist/pgw-0.0.3.tar.gz b/dist/pgw-0.0.3.tar.gz deleted file mode 100644 index ae892a7..0000000 Binary files a/dist/pgw-0.0.3.tar.gz and /dev/null differ diff --git a/dist/pgw-0.0.4-py3-none-any.whl b/dist/pgw-0.0.4-py3-none-any.whl deleted file mode 100644 index b2cb237..0000000 Binary files a/dist/pgw-0.0.4-py3-none-any.whl and /dev/null differ diff --git a/dist/pgw-0.0.4-py3.7.egg b/dist/pgw-0.0.4-py3.7.egg deleted file mode 100644 index 3b0747f..0000000 Binary files a/dist/pgw-0.0.4-py3.7.egg and /dev/null differ diff --git a/dist/pgw-0.0.4.tar.gz b/dist/pgw-0.0.4.tar.gz deleted file mode 100644 index 3fe3bc6..0000000 Binary files a/dist/pgw-0.0.4.tar.gz and /dev/null differ diff --git a/dist/pgw-0.0.5-py3-none-any.whl b/dist/pgw-0.0.5-py3-none-any.whl deleted file mode 100644 index b1d524e..0000000 Binary files a/dist/pgw-0.0.5-py3-none-any.whl and /dev/null differ diff --git a/dist/pgw-0.0.5-py3.7.egg b/dist/pgw-0.0.5-py3.7.egg deleted file mode 100644 index 591390a..0000000 Binary files a/dist/pgw-0.0.5-py3.7.egg and /dev/null differ diff --git a/dist/pgw-0.0.5.tar.gz b/dist/pgw-0.0.5.tar.gz deleted file mode 100644 index 8217eef..0000000 Binary files a/dist/pgw-0.0.5.tar.gz and /dev/null differ diff --git a/dist/pgw-0.0.6-py3-none-any.whl b/dist/pgw-0.0.6-py3-none-any.whl deleted file mode 100644 index 3fef320..0000000 Binary files a/dist/pgw-0.0.6-py3-none-any.whl and /dev/null differ diff --git a/dist/pgw-0.0.6-py3.7.egg b/dist/pgw-0.0.6-py3.7.egg deleted file mode 100644 index 4b19c59..0000000 Binary files a/dist/pgw-0.0.6-py3.7.egg and /dev/null differ diff --git a/dist/pgw-0.0.6.tar.gz b/dist/pgw-0.0.6.tar.gz deleted file mode 100644 index c32c455..0000000 Binary files a/dist/pgw-0.0.6.tar.gz and /dev/null differ diff --git a/dist/pgw-0.0.7-py3-none-any.whl b/dist/pgw-0.0.7-py3-none-any.whl deleted file mode 100644 index e6e6398..0000000 Binary files a/dist/pgw-0.0.7-py3-none-any.whl and /dev/null differ diff --git a/dist/pgw-0.0.7-py3.7.egg b/dist/pgw-0.0.7-py3.7.egg deleted file mode 100644 index d10f606..0000000 Binary files a/dist/pgw-0.0.7-py3.7.egg and /dev/null differ diff --git a/dist/pgw-0.0.7.tar.gz b/dist/pgw-0.0.7.tar.gz deleted file mode 100644 index 9fa9c17..0000000 Binary files a/dist/pgw-0.0.7.tar.gz and /dev/null differ diff --git a/dist/pgw-0.0.8-py3-none-any.whl b/dist/pgw-0.0.8-py3-none-any.whl deleted file mode 100644 index 1c6d185..0000000 Binary files a/dist/pgw-0.0.8-py3-none-any.whl and /dev/null differ diff --git a/dist/pgw-0.0.8-py3.7.egg b/dist/pgw-0.0.8-py3.7.egg deleted file mode 100644 index 7b4f95c..0000000 Binary files a/dist/pgw-0.0.8-py3.7.egg and /dev/null differ diff --git a/dist/pgw-0.0.8.tar.gz b/dist/pgw-0.0.8.tar.gz deleted file mode 100644 index 605ee60..0000000 Binary files a/dist/pgw-0.0.8.tar.gz and /dev/null differ diff --git a/dist/pgw-0.0.9-py3.7.egg b/dist/pgw-0.0.9-py3.7.egg deleted file mode 100644 index d47916d..0000000 Binary files a/dist/pgw-0.0.9-py3.7.egg and /dev/null differ diff --git a/dist/pgw-0.1.0-py3-none-any.whl b/dist/pgw-0.1.0-py3-none-any.whl deleted file mode 100644 index e1cb555..0000000 Binary files a/dist/pgw-0.1.0-py3-none-any.whl and /dev/null differ diff --git a/dist/pgw-0.1.0-py3.7.egg b/dist/pgw-0.1.0-py3.7.egg deleted file mode 100644 index 1e79d63..0000000 Binary files a/dist/pgw-0.1.0-py3.7.egg and /dev/null differ diff --git a/dist/pgw-0.1.0.tar.gz b/dist/pgw-0.1.0.tar.gz deleted file mode 100644 index ca0450e..0000000 Binary files a/dist/pgw-0.1.0.tar.gz and /dev/null differ diff --git a/dist/pygwin-0.0.1-py3.7.egg b/dist/pygwin-0.0.1-py3.7.egg deleted file mode 100644 index 2330b36..0000000 Binary files a/dist/pygwin-0.0.1-py3.7.egg and /dev/null differ diff --git a/dist/pygwin-0.1.0-py3.7.egg b/dist/pygwin-0.1.0-py3.7.egg deleted file mode 100644 index f28b5c8..0000000 Binary files a/dist/pygwin-0.1.0-py3.7.egg and /dev/null differ diff --git a/dist/pygwin0-0.0.1-py3-none-any.whl b/dist/pygwin0-0.0.1-py3-none-any.whl deleted file mode 100644 index 6da7a09..0000000 Binary files a/dist/pygwin0-0.0.1-py3-none-any.whl and /dev/null differ diff --git a/dist/pygwin0-0.0.1.tar.gz b/dist/pygwin0-0.0.1.tar.gz deleted file mode 100644 index 77316c4..0000000 Binary files a/dist/pygwin0-0.0.1.tar.gz and /dev/null differ diff --git a/src/pygwin/ui.py b/src/pygwin/ui.py index 274d7b7..4720f02 100644 --- a/src/pygwin/ui.py +++ b/src/pygwin/ui.py @@ -646,15 +646,20 @@ class checkBox(widget): def draw(self, win, pos): self._generate(pos) win.blit(self.surface,pos) -# class colorPicker(widget): -# def __init__(self): -# self._generate() -# def _generate(self, position=None): -# self.surface = _s((255,self.width)) -# -# def draw(self, win, pos): -# self._generate(pos) -# win.blit(self.surface,pos) +class comboBox(widget): + def __init__(self,text,values=[], +fontSize=30,font=_df,width=None,height=None, +bg=(70,70,70),fg=(180,180,200),afg=(50,50,50), +abg=(200,200,200),borderColor=(50,50,50),borderWidth=5): + super()._args(locals()) + self._generate() + + def _generate(self, position=None): + self.surface = _s((255,self.width)) + + def draw(self, win, pos): + self._generate(pos) + win.blit(self.surface,pos) class tip(widget): def __init__(self,text,responceWidth,responceHeight,fontSize=15,font=_df, borderColor=(180,180,50),borderWidth=2,bg=(255,255,128), diff --git a/tests/main.py b/tests/main.py deleted file mode 100644 index 2009089..0000000 --- a/tests/main.py +++ /dev/null @@ -1,3 +0,0 @@ -import pygwin - -pygwin.keyboard.isprs