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 : CheckBox.py
from tkinter import Checkbutton, IntVar from . import utilities as utils from .base import TextWidget class CheckBox(TextWidget): def __init__( self, master, text="", command=None, grid=None, align=None, args=None, visible=True, enabled=None, width=None, height=None): """ Creates a CheckBox :param Container master: The Container (App, Box, etc) the CheckBox will belong too. :param string selected: The text required for the checkbox. Defaults to "". :param callback command: The callback function to call when the CheckBox changes. :param List grid: Grid co-ordinates for the widget, required if the master layout is 'grid', defaults to `None`. :param string align: How to align the widget within the grid, defaults to None. :param callback args: A list of arguments to pass to the widgets `command`, defaults to `None`. :param bool visible: If the widget should be visible, defaults to `True`. :param bool enabled: If the widget should be enabled, defaults to `None`. If `None` the value is inherited from the master. :param int width: The starting width of the widget. Defaults to `None` and will auto size. :param int height: The starting height of the widget. Defaults to `None` and will auto size. """ description = "[CheckBox] object with text \"" + text + "\"" self._text = str(text) self._value = IntVar() tk = Checkbutton(master.tk, text=text, variable=self._value) super(CheckBox, self).__init__(master, tk, description, grid, align, visible, enabled, width, height) # Set the command callback self.tk.config(command=self._command_callback) self.update_command(command, args) # PROPERTIES # ---------------------------------- # Whether the box is checked or not @property def value(self): """ Sets or returns the value of the CheckBox. """ return (self._value.get()) # Set whether the box is checked or not @value.setter def value(self, value): try: value = int(value) if value in [0, 1]: self._value.set(value) except ValueError: utils.error_format("You can only set the value of " + self.description + " to either 0 (not checked) or 1 (checked)") # The text associated with this box @property def text(self): """ Sets or returns the text of the CheckBox. """ return (self._text) # Set whether the box is checked or not @text.setter def text(self, text): self._text = str(text) self.tk.config(text=self._text) self.description = "[CheckBox] object with text \"" + str(self._text) + "\"" # METHODS # ------------------------------------------- def toggle(self): """ Toggles the value of the CheckBox. """ self.tk.toggle() def update_command(self, command, args=None): """ Updates the callback command which is called when the Combo changes. Setting to `None` stops the callback. :param callback command: The callback function to call. :param args list: A list of argument values to pass to the callback. Defaults to `None`. """ if command is None: self._command = lambda: None else: if args is None: self._command = command else: self._command = utils.with_args(command, *args) def _command_callback(self): self._command() # DEPRECATED METHODS # -------------------------------------------- # Return text associated with this checkbox def get_text(self): return self._text utils.deprecated("CheckBox get_text() is deprecated. Please use the text property instead.") # Return the value (1 or 0) of the box def get_value(self): return self._value.get() utils.deprecated("CheckBox get_value() is deprecated. Please use the value property instead.") # Change text def change_text(self, newtext): self._text = str(newtext) self.tk.config(text=self._text) self.description = "[CheckBox] object with text " + str(self._text) utils.deprecated("CheckBox change_text() is deprecated. Please use the text property instead.")
Close