Qwael 4.0.0.1.4__tar.gz → 4.0.0.1.5__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: Qwael
3
- Version: 4.0.0.1.4
3
+ Version: 4.0.0.1.5
4
4
  Summary: Qwael: İşlevsel ve kolaylaştırılmış Python kütüphanesi
5
5
  Author: Bedirhan
6
6
  Author-email: bedirhan.oytpass@gmail.com
@@ -6,4 +6,5 @@ from .DRİVE import get
6
6
  from .DoIP import IP
7
7
  from .filesz import EasyDB
8
8
  from .MultiDB import MultiDB
9
- from .Multidata import Admin
9
+ from .Multidata import Admin
10
+ from .pgif import gif
@@ -0,0 +1,51 @@
1
+ from kivy.uix.image import Image
2
+ from kivy.clock import Clock
3
+ from kivy.properties import ListProperty, NumericProperty
4
+
5
+ class gif(Image):
6
+ source_list = ListProperty([])
7
+ time = NumericProperty(0.1)
8
+ umit = NumericProperty(0)
9
+
10
+ def __init__(self, **kwargs):
11
+ super().__init__(**kwargs)
12
+ self.index = 0
13
+ self.turn = 0
14
+ self._event = None
15
+
16
+ Clock.schedule_once(self._start)
17
+
18
+ def _start(self, dt):
19
+ if not self.source_list:
20
+ return
21
+
22
+ self.source = self.source_list[0]
23
+ self._event = Clock.schedule_interval(
24
+ self._update,
25
+ self.time
26
+ )
27
+
28
+ def _update(self, dt):
29
+ self.index += 1
30
+
31
+ if self.index >= len(self.source_list):
32
+ self.index = 0
33
+ self.turn += 1
34
+
35
+ if self.umit != 0 and self.turn >= self.umit:
36
+ self.stop()
37
+ return
38
+
39
+ self.source = self.source_list[self.index]
40
+
41
+ def stop(self):
42
+ if self._event:
43
+ self._event.cancel()
44
+ self._event = None
45
+
46
+ def play(self):
47
+ if not self._event:
48
+ self._event = Clock.schedule_interval(
49
+ self._update,
50
+ self.time
51
+ )
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: Qwael
3
- Version: 4.0.0.1.4
3
+ Version: 4.0.0.1.5
4
4
  Summary: Qwael: İşlevsel ve kolaylaştırılmış Python kütüphanesi
5
5
  Author: Bedirhan
6
6
  Author-email: bedirhan.oytpass@gmail.com
@@ -7,6 +7,7 @@ Qwael/MultiDB.py
7
7
  Qwael/Multidata.py
8
8
  Qwael/__init__.py
9
9
  Qwael/filesz.py
10
+ Qwael/pgif.py
10
11
  Qwael.egg-info/PKG-INFO
11
12
  Qwael.egg-info/SOURCES.txt
12
13
  Qwael.egg-info/dependency_links.txt
@@ -5,7 +5,7 @@ with open("README.md", "r", encoding="utf-8") as f:
5
5
 
6
6
  setup(
7
7
  name="Qwael",
8
- version="4.0.0.1.4",
8
+ version="4.0.0.1.5",
9
9
  packages=find_packages(),
10
10
  install_requires=[
11
11
  "google-api-python-client",
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes