# Official Website: http://pyabr.rf.gd # Programmer & Creator: Mani Jamali <*****@*****.**> # Gap channel: @pyabr # Gap group: @pyabr_community # Git source: github.com/PyFarsi/pyabr # ####################################################################################### from PyQt5.QtCore import * from PyQt5.QtGui import * from PyQt5.QtWidgets import * import sys, importlib from libabr import Files, Res, App, Control files = Files() res = Res() app = App() control = Control() class MainApp(QLineEdit): def correct(self): self.setStyleSheet( f'background-color: {res.etc(self.AppName,"bgcolor")};color: {res.etc(self.AppName,"fgcolor")};' ) app.switch('runapp') self.Widget.SetWindowTitle(res.get('@string/app_name')) self.setEnabled(True) self.clear() def RunApp(self): command = self.text().split(' ')
################## Module configure ########################## sys.path.append("usr/app") from libabr import Modules, Files, Control, Colors, Process, Permissions, System, App, Commands, Script ################## Interface configure ########################## modules = Modules() files = Files() control = Control() colors = Colors() process = Process() permissions = Permissions() app = App() commands = Commands() modules.get_modules() ## Find extra packages ## ## @lib/enc ## def uencall(): for i in files.list('/app/packages'): if files.isfile(f'/app/packages/{i}'): commands.uenc([f'/app/packages/{i}']) for i in files.list('/app/mirrors'): if files.isfile(f'/app/mirrors/{i}'):