def q_bt(self, x_pos, y_pos, width, height, image, win): mouse = pygame.mouse.get_pos() click = pygame.mouse.get_pressed() if x_pos + width > mouse[0] > x_pos and y_pos + height > mouse[ 1] > y_pos: win.blit(image, (x_pos, y_pos)) if click[0] == 1: import about about.about()
def display_menu(args): maps = args['maps'] current_choice = args['current_choice'] user_input = args['last_input'] user = args['player'] user.reset() logo() current_choice = button(user_input, current_choice) print('\n\n') print("player:".rjust(65), "name:".rjust(24)) print(user.player_char.rjust(71), user.name.rjust(27)) user_input = getch() if user_input == '\r' and current_choice == 4: return if user_input == '\r' and current_choice == 1: # Change map to lvl 1 # Can be modified to show story clear() intro() board = unfile(maps[1]) original_board = unfile(maps[1]) return (1, None, board, original_board) if user_input == '\r' and current_choice == 2: # Change to about screen clear() about() clear() logo() return ('menu', current_choice, user_input) if user_input == '\r' and current_choice == 3: # Change to about screen clear() about() clear() logo() return ('menu', current_choice, user_input) else: clear() logo() return ('menu', current_choice, user_input)
def main(StandardScren): restart_screen(StandardScren) width = StandardScren.getmaxyx()[1] x_center = (width - 1) // 2 posicoes = [[' ', ' ', ' '], [' ', ' ', ' '], [' ', ' ', ' ']] while True: entrada = StandardScren.getkey() if entrada == 'q': break if entrada == 'h': about(StandardScren) else: board(StandardScren, posicoes, x_center)
def display_page(pathname): if pathname == '/trends': return trends() if pathname == "/survey": return contribute() if pathname == "/about": return about() return product()
def vAboutInQCB(self): """ Acknowledgements About Qrius """ self.About_Instance += 1 if self.About_Instance > 1: self.vHighlightWindow(self.winAbout) return if self.About_Instance == 1: self.winAbout = Toplevel(takefocus=True) self.winAbout.resizable(False, False) self.winAbout.protocol('WM_DELETE_WINDOW', self.vCloseAboutWindow) oAbout = about.about(self.winAbout, self) return
def mains(): st.header('Image Processing with OpenCv') st.image('logo_resized.png', use_column_width=True) selected_box = st.sidebar.selectbox( 'Choose one of the following', ('Image Information', 'Algebra operation', 'Logical Operation', 'Geometric Operation', 'Image Transformation', 'Image Enhancement', 'Image Restoration', 'Image Compression', 'Image Segmentation', 'Color Image Processing', 'Image Representation and Description', 'About' ) ) if selected_box == 'Image Information': image_info() if selected_box == 'Algebra operation': algebra_operation() if selected_box == 'Logical Operation': logical_operation() if selected_box == 'Geometric Operation': geometric_operation() if selected_box == 'Image Transformation': image_transformation() if selected_box == 'Image Enhancement': image_enhancement() if selected_box == 'Image Restoration': image_restoration() if selected_box == 'Image Compression': image_compression() if selected_box == 'Image Segmentation': image_segmentation() if selected_box == ' Color Image Processing': color_image_processing() if selected_box == 'Image Representation and Description': image_representation_and_description() if selected_box == 'About': about()
def pybot(command): #command = input('pybot> ') response = '' try: for key in bot_dict: if key in command: response = bot_dict[key] break if '天気' in command: response = weather_command() if 'wikipedia' in command: response = wikipedia_command(command) if 'audience_mobilization_anaritics' in command: response = douin_csv_open(command) if 'What_is_the_bellmare_spectator_recruitment_number_forecast?' in command: response = about() if 'tell_me_the_analytical_method' in command: response = anaritics_method() if 'tell_me_about_other_functions' in command: response = other_functions() #サッカーのベルマーレとか打つと下のifの関数のみが適用されるのでいつか何かを考える if 'スタジアム' in command: response = about_stadium() if 'サッカー' in command: response = about_soccer() if 'ベルマーレ' in command: response = about_bellmare() if 'Jリーグ' in command: response = about_j_league() if not response: response = 'ごめんなさい。その言葉はまだ教わっていないから分からないの。' return response #if 'さようなら' in command: # break except Exception as e: print('予期セヌ エラーガ 発生シマシタ') print('* 種類:', type(e)) print('* 内容', e)
def makeMenuBar(self): # Menubar menubar = Menu(self) # Menus and Submenus filemenu = Menu(menubar, tearoff=0) helpmenu = Menu(menubar, tearoff=0) # Menu commands and subcommands menubar.add_cascade(label="File", menu=filemenu) menubar.add_cascade(label="Help", menu=helpmenu) # File Menus filemenu.add_command(label="Exit", command=self.quit) helpmenu.add_command(label="Help Index", command=donothing) helpmenu.add_command(label="About...", command=lambda: about(self)) # Put menubar on frame self.config(menu=menubar)
def main(): #Loop principal, menu pygame.init() pantalla = pygame.display.set_mode((800, 600)) pygame.display.set_caption("Supercuentas") salir = False reloj1 = pygame.time.Clock() cursor1 = Cursor() fuente1 = pygame.font.Font(None, 48) fuente2 = pygame.font.Font(None, 24) fondo = pygame.image.load("imagenes/blackboard.jpeg") pygame.mixer.music.load("sonidos/tema1.mid") musica1 = pygame.mixer.Sound("sonidos/boton1.wav") blanco = (255, 255, 255) global musica global tiempo global score global modo global sonido global fallos global maxRacha global rachaActual boton_jugar = Boton(130, 130, 211, 158, "Jugar", 30, blanco, "fuentes/EraserDust.ttf") boton_reglas = Boton(130, 170, 228, 198, "Reglas", 30, blanco, "fuentes/EraserDust.ttf") boton_salir = Boton(130, 290, 200, 315, "Salir", 30, blanco, "fuentes/EraserDust.ttf") boton_rank = Boton(130, 250, 235, 275, "Ranking", 30, blanco, "fuentes/EraserDust.ttf") boton_about = Boton(130, 500, 400, 515, "Acerca de Supercuentas!", 20, blanco, "fuentes/EraserDust.ttf") if musica: boton_musica = Boton(680, 10, 760, 30, "musica ON", 20, (255, 0, 0), "fuentes/EraserDust.ttf") pygame.mixer.music.play() else: boton_musica = Boton(680, 10, 760, 30, "musica OFF", 20, (255, 0, 0), "fuentes/EraserDust.ttf") pygame.mixer.music.stop() boton_titulo = Boton(100, 50, 100, 50, "Supercuentas!", 40, (255, 200, 0), "fuentes/EraserDust.ttf") boton_nivel = Boton(130, 210, 290, 235, "Nivel: Facil", 30, blanco, "fuentes/EraserDust.ttf") boton_sonido = Boton(680, 30, 760, 50, "sonido ON", 20, (255, 0, 0), "fuentes/EraserDust.ttf") while salir != True: for event in pygame.event.get(): if event.type == pygame.QUIT: salir = True if event.type == pygame.MOUSEBUTTONDOWN: if boton_jugar.es_presionado(): if sonido: musica1.play() score = 0 fallos = 0 maxRacha = 0 racha = 0 rachaActual = 0 tiempo = 60 game() pygame.mixer.music.stop() musica = False aftergame.aftergame(score, max(rachaActual, maxRacha), fallos) if boton_reglas.es_presionado(): if sonido: musica1.play() reglas() if boton_about.es_presionado(): if sonido: musica1.play() about.about() if boton_rank.es_presionado(): if sonido: musica1.play() rankScreen.rankScreen() if boton_salir.es_presionado(): musica1.play() salir = True if boton_musica.es_presionado(): if sonido: musica1.play() if musica == True: pygame.mixer.music.stop() musica = False else: pygame.mixer.music.play() musica = True if boton_nivel.es_presionado(): if sonido: musica1.play() if modo == "facil": modo = "normal" boton_nivel = Boton(130, 210, 330, 235, "Nivel: Normal", 30, blanco, "fuentes/EraserDust.ttf") elif modo == "normal": modo = "dificil" boton_nivel = Boton(130, 210, 330, 235, "Nivel: Dificil", 30, blanco, "fuentes/EraserDust.ttf") elif modo == "dificil": modo = "facil" boton_nivel = Boton(130, 210, 290, 235, "Nivel: Facil", 30, blanco, "fuentes/EraserDust.ttf") if boton_sonido.es_presionado(): if sonido: musica1.play() if sonido: sonido = False boton_sonido = Boton(680, 30, 760, 50, "sonido OFF", 20, (255, 0, 0), "fuentes/EraserDust.ttf") else: sonido = True boton_sonido = Boton(680, 30, 760, 50, "sonido ON", 20, (255, 0, 0), "fuentes/EraserDust.ttf") reloj1.tick(15) cursor1.update() pantalla.fill((30, 30, 200)) pantalla.blit(fondo, (0, 0)) if not musica: boton_musica.set_texto("musica OFF", (255, 0, 0)) else: boton_musica.set_texto("musica ON", (255, 0, 0)) boton_sonido.update(pantalla) boton_nivel.update(pantalla) boton_jugar.update(pantalla) boton_reglas.update(pantalla) boton_about.update(pantalla) boton_salir.update(pantalla) boton_musica.update(pantalla) boton_titulo.update(pantalla) boton_rank.update(pantalla) pygame.display.update() pygame.quit()
def About(self, event): frame = about.about() frame.Show()
#from networkx import Graph #import seaborn as sns sys.path.append('..') import about import pathcustomize from waldo.conf import settings from waldo.wio.experiment import Experiment from waldo.output.speed import SpeedWriter from waldo.output.speed import * from waldo.wio.worm_writer import WormWriter plt.style.use('bmh') about.about() day_1_eids = [ '20130318_131056', '20130318_131111', '20130318_131113', '20130318_142605', '20130318_142613', '20130318_153741', '20130318_153742', '20130318_153749', '20130318_165642', '20130318_165643', '20130318_165649'] day_5_eids = ['20130322_104414', #'20130322_104423',
def About(self): self.root.destroy() import about about.about(self.name)
def fun_about(self): self.about1 = about.about() self.about1.show()
def showabout(self): mDialog = about() #mDialog.setModal(true) mDialog.show() mDialog.exec_loop()
def about(self): about(self)
def menu(): _menu = """ -------------------------------------------------------- ███████╗░█████╗░██╗░░██╗███████╗██╗░░░░░██╗███╗░░██╗██╗░░██╗ ██╔════╝██╔══██╗██║░██╔╝██╔════╝██║░░░░░██║████╗░██║██║░██╔╝ █████╗░░███████║█████═╝░█████╗░░██║░░░░░██║██╔██╗██║█████═╝░ ██╔══╝░░██╔══██║██╔═██╗░██╔══╝░░██║░░░░░██║██║╚████║██╔═██╗░ ██║░░░░░██║░░██║██║░╚██╗███████╗███████╗██║██║░╚███║██║░╚██╗ ╚═╝░░░░░╚═╝░░╚═╝╚═╝░░╚═╝╚══════╝╚══════╝╚═╝╚═╝░░╚══╝╚═╝░░╚═╝ version:1.0 [+] By Fouad@Algeria - 2020 [+] [email protected]. -------------------------------------------------------- 1 ) start 2 ) about 3 ) exit * warning : - Run Apache first. - If you do not have Apache: Download and install it from the following link: https://www.apachefriends.org/index.html and run app again (*_-). --------------------------------------------------------- """ #os.system("color 9") this code from change a color from cmd or tarminal ==>(color 9) is color blue print(_menu) data_server = 'd_s.txt' chose = int(input('< enter Your choice > ')) if chose == 1: print(""" -------------------------------------- 1 ) new server Connect 2 ) old server Connect 3 ) return Menu 4 ) exit -------------------------------------- """) connect = int(input('< Enter Your choice > ')) if connect == 1: server = input('< enter server Name > ') username = input('< enter username > ') password = input('< enter password > ') db = config.db(server, username, password) db.connect() saveInfoServer = input( '< Do you want to save the data for this server? (y/n)>') if saveInfoServer.lower() == 'y': file = open(data_server, "w+") file.write(server + ',' + username + ',' + password) file.close() print('data saved !!') # here code init from page php and print link print('----------------------------------') #Fake(Project,hackUrl, hackTitel, hackProfile, hackDesc): project = input('< Enter Name Project > ') hackUrl = input('< Enter url From Video > ') hackTitel = input('< Enter Titel video > ') hackProfile = input('< Enter Name Fake Profile > ') hackDesc = input('< Enter Description video > ') print('----------------------------------') time.sleep(3) #os.system('cls') Fake(project, server, username, password, hackUrl, hackTitel, hackProfile, hackDesc) print( '------------------- Fake Project Is Created --------------------' ) print('[+] Folder from Project : ' + ture_path + '/' + project) print('[+] Victim : Send the link to the victim ') print('[+] => http://' + server + '/' + project + '/index.html') print('[+] panel Hacker : http://' + server + '/' + project + '/panel.php') print( '----------------------------------------------------------------' ) elif connect == 2: if os.path.exists(data_server): file = open(data_server) data = file.read().split(',') db = config.db(data[0], data[1], data[2]) db.connect() #here code ... else: print('You do not have any old connection to a server') print('try again (-__-) ..') time.sleep(3) os.system('cls') os.system('FakeLink.py') elif connect == 3: os.system('cls') os.system('FakeLink.py') elif connect == 4: os.system('cls') exit() else: print('Your choice not found ') time.sleep(3) os.system('cls') os.system('FakeLink.py') # here start create new project elif chose == 2: about() y = input('Do you want return (y/n) > ') if y == 'y': os.system('cls') os.system('FakeLink.py') else: exit() # here print about from app elif chose == 3: # here exit from app exit()
##### GUI 菜单栏 tk_Menu = Menu(tk) tk.config(menu=tk_Menu) # File menu_file = Menu(tk_Menu, tearoff=0) menu_file.add_command( label="Open Preset", command=lambda: [openConfigFile(), refreshParamPreview(tk)]) menu_file.add_command(label="Save Preset", command=saveConfigFile) menu_file.add_separator() menu_file.add_command(label="Exit", command=quitWindow) # Help menu_help = Menu(tk_Menu, tearoff=0) menu_help.add_command(label="About", command=lambda: about.about()) # GUI 添加菜单栏 tk_Menu.add_cascade(label="File", menu=menu_file) tk_Menu.add_cascade(label="Help", menu=menu_help) ### GUI框架 Frame IOFrame = LabelFrame(tk, relief=FLAT) IOFrame.grid(row=0, column=0, padx=containerpadx, pady=0, columnspan=2, sticky='WENS') containerFrame = LabelFrame(tk, bd=2, text='Container') containerFrame.grid(row=1, column=0,
def smsbombingwin(): from selenium import webdriver from selenium.webdriver.common.keys import Keys from selenium.webdriver.common.by import By from selenium.webdriver.support.ui import WebDriverWait from selenium.webdriver.support import expected_conditions as EC from selenium.webdriver.chrome.options import Options from selenium.webdriver.support.ui import Select import platform from about import menu, about import time import os def remsp(num): num = num.replace(' ', '') num = num.replace('-', '') return num cc = input(" |-$ Enter Your Country Code (Without +) > ") ph = input(' |-$ Enter Target Number > ' + " +" + cc + " ") ph = remsp(ph) if len(cc) >= 4 or len(cc) < 1: print( ' |-$ Invalid Country Code.. Country Codes Are Generally 1-3 digits...' ) return if len(ph) <= 6: print(' |-$ Invalid Phone Number..') return for cch in str(cc + ph): if not cch.isdigit(): print(' |-$ Phone Number Must Consist Of Numbers Only') return repcount = int(input(' |-$ How many times (1-200) ? > ')) options = Options() options.headless = True options.add_argument("--log-level=3") wcr_dict = os.getcwd() + '//chromedriver.exe' browser = webdriver.Chrome(executable_path=wcr_dict, chrome_options=options) os.system('cls') about() menu() print(f''' |-> 2 |-$ Enter Your Country Code (Without +) > {cc} |-$ Enter Target Number > +{cc} {ph}''') print(f''' |-$ How many times (1-200) ? > {repcount}''') print(" |-$ Attack Under Progress (Don't Close The Terminal) !") if cc == '91': browser.get('https://mytoolstown.com/smsbomber/#bestsmsbomber') try: confirm = WebDriverWait(browser, 20).until( EC.presence_of_element_located((By.ID, "mobno"))) finally: pass else: browser.get('https://mytoolstown.com/smsbomber/change.php') try: confirm = WebDriverWait(browser, 20).until( EC.presence_of_element_located((By.NAME, "countrycode"))) finally: pass select = Select(browser.find_element_by_name('countrycode')) try: select.select_by_value(cc) except: print(' |-$ invalid country code !') return finally: pass browser.find_element_by_name('submit').click() time.sleep(5) browser.get('https://mytoolstown.com/smsbomber/#bestsmsbomber') try: confirm = WebDriverWait(browser, 20).until( EC.presence_of_element_located((By.ID, "mobno"))) finally: pass browser.find_element_by_id('mobno').send_keys(int(ph)) time.sleep(5) browser.find_element_by_id('count').send_keys(repcount) time.sleep(1) browser.find_element_by_id('count').send_keys(Keys.TAB + Keys.ARROW_DOWN + Keys.ARROW_DOWN + Keys.ENTER) while browser.current_url != 'https://mytoolstown.com/smsbomber/success.php': time.sleep(5) print(''' |-} Done ! |-----------------------------------------------------------''') time.sleep(2) browser.quit()
lat_b = np.genfromtxt('sublattice_b.txt', dtype=np.int32) else: lat_a, lat_b = None, None try: import main main.main_states(initial_values, optional_values, lat_a, lat_b) except Exception as e: print(e, traceback.format_exc()) pass if __name__ == '__main__': root = tk.Tk() root.title('PyThermal {} GUI (Alpha)'.format(__version__)) about.about(test=False) # Setting icon for window try: if os.name is 'nt': root.iconbitmap('meta/icon.ico') else: root.iconbitmap('@meta/icon-0.xbm') except tk.TclError: pass init_values, opt_values = graphical_interface(root) # Enter/Return key will execute root.bind('<Return>', lambda event: execute(init_values, opt_values))
def init_ui(self): # 添加栅格布局 # 布局只能添加到Widget里 # 所以先添加一个Widget grid = QGridLayout() # 这个叫widget的是主widget。左侧为一列功能键,右侧为页面 self.widget = QWidget() self.widget.setObjectName("main") self.widget.setLayout(grid) self.setCentralWidget(self.widget) grid.setSpacing(15) # 这里是左侧的一堆功能键 self.btn_welcome = QPushButton(qtawesome.icon('fa.sellsy'), '欢迎光临', self) self.btn_welcome.clicked[bool].connect(self.button_clicked) self.btn_welcome.setObjectName("left") self.btn_input = QPushButton(qtawesome.icon('fa.music'), '期权参数', self) self.btn_input.clicked[bool].connect(self.button_clicked) self.btn_input.setObjectName("left") self.btn_result = QPushButton(qtawesome.icon('fa.download'), '查看价格', self) self.btn_result.clicked[bool].connect(self.button_clicked) self.btn_result.setObjectName("left") self.btn_result.setEnabled(False) self.btn_list = QPushButton(qtawesome.icon('fa.film'), '算法一览', self) self.btn_list.clicked[bool].connect(self.button_clicked) self.btn_list.setObjectName("left") self.btn_about = QPushButton(qtawesome.icon('fa.star'), '关于我们', self) self.btn_about.clicked[bool].connect(self.button_clicked) self.btn_about.setObjectName("left") self.btn_quit = QPushButton(qtawesome.icon('fa.question'), '退出系统', self) self.btn_quit.clicked[bool].connect(self.button_clicked) self.btn_quit.setObjectName("left") grid.addWidget(self.btn_welcome, 4, 0) grid.addWidget(self.btn_input, 5, 0) grid.addWidget(self.btn_result, 6, 0) grid.addWidget(self.btn_list, 7, 0) grid.addWidget(self.btn_about, 8, 0) grid.addWidget(self.btn_quit, 9, 0) # 这里是每个功能键的页面 self.page_welcome = page.page(grid, self) welcome.welcome(self.page_welcome) self.page_result = page.page(grid, self) result.result(self.page_result) self.page_list = page.page(grid, self) list.list(self.page_list) self.page_about = page.page(grid, self) about.about(self.page_about) self.page_quit = page.page(grid, self) quit.quit(self.page_quit) self.page_input = page.page(grid, self) input.input(self.page_input) self.page_welcome.show(self) # 给布局添加上左侧功能键和LOGO logo = QLabel(self) directory = "img/logo2.png" pix = QPixmap(directory) logo.setPixmap(pix) grid.addWidget(logo, 1, 0, 3, 1) # 设置标题logo self.setWindowIcon(QIcon(directory)) # 居中并绘制 self.resize(1280, 720) self.center() self.setWindowTitle('MiniSQL') # 导入qss样式 directory = "style.qss" with open(directory, 'r') as f: qss_style = f.read() self.setStyleSheet(qss_style) self.show() self.button_change(self.btn_welcome)
def igbombingwin(): from selenium import webdriver from selenium.webdriver.common.keys import Keys from selenium.webdriver.common.by import By from selenium.webdriver.support.ui import WebDriverWait from selenium.webdriver.support import expected_conditions as EC from selenium.webdriver.chrome.options import Options import platform from about import menu,about import time import os import sys ig_username = input(' |-$ Your Username > ') ig_password = input(' |-$ Your Password > ') ig_victim = input(" |-$ Victim's Username > ") mode = input(''' | |-PRESS------------------| | 1] Repetitive Mode | | 2] Script/Lyrical Mode | | Facing Problem ? | | Check out README.MD | |------------------------| |-> ''') if mode.lower() == '1' or mode.lower() == 'repetitive mode': reptxt = input(' |-$ Word/Sentence that you want to send Multiple Times > ') repcount = int(input(' |-$ How many times ? > ')) elif mode.lower() == '2' or mode.lower() == 'script/lyrical mode': lyrics = open("lyrics.txt","r+") splitedlyrics = (lyrics.read().split()) else: print(' |-} invalid input !') return print(' |-} Logging in...') options = Options() #options.headless = True options.add_argument("--log-level=3") wcr_dict = os.getcwd() + '//chromedriver.exe' browser = webdriver.Chrome(executable_path=wcr_dict, chrome_options=options) os.system('cls') about() menu() print(f''' |-> 3 |-$ Your Username > {ig_username} |-$ Your Password > {ig_password} |-$ Victim's Username > {ig_victim} | |-PRESS------------------| | 1] Repetitive Mode | | 2] Script/Lyrical Mode | | Facing Problem ? | | Check out README.MD | |------------------------| |-> {mode}''') if mode.lower() == '1' or mode.lower() == 'repetitive mode': print( f''' |-$ Word/Sentence that you want to send Multiple Times > {reptxt} |-$ How many times ? > {repcount}''') print(' |-} Logging in...') browser.get('https://www.instagram.com/accounts/login') time.sleep(2) username_bar = browser.find_element_by_name('username') username_bar.send_keys(ig_username) password_bar = browser.find_element_by_name('password') password_bar.send_keys(ig_password + Keys.ENTER) time.sleep(7) if browser.current_url == 'https://www.instagram.com/': pass else: try: confirm = WebDriverWait(browser, 20).until(EC.presence_of_element_located( (By.CLASS_NAME, "coreSpriteKeyhole"))) except: print(' |-} Log in Failed !') return finally: pass print(' |-} Logged in Successfully !') browser.get('https://www.instagram.com/direct/new/') try: confirm = WebDriverWait(browser, 5).until(EC.presence_of_element_located( (By.CLASS_NAME, "mt3GC"))) browser.find_element_by_class_name("mt3GC").click() except: pass try: confirm = WebDriverWait(browser, 20).until(EC.presence_of_element_located( (By.NAME, "queryBox"))) finally: pass browser.find_element_by_name('queryBox').send_keys(ig_victim) try: confirm = WebDriverWait(browser, 20).until(EC.presence_of_element_located( (By.CLASS_NAME, "dCJp8"))) finally: pass time.sleep(2) browser.find_element_by_class_name('dCJp8').click() time.sleep(1) browser.find_element_by_class_name('rIacr').click() try: confirm = WebDriverWait(browser, 20).until(EC.presence_of_element_located( (By.XPATH, "//textarea"))) finally: pass if ig_victim == browser.find_elements_by_class_name('_7UhW9.vy6Bb.qyrsm.KV-D4.fDxYl')[1].text: pass else: print(' |-} no such user named ' + ig_victim) return if mode.lower() == '1' or mode.lower() == 'repetitive mode': for i in range(repcount): browser.find_element_by_xpath("//textarea").send_keys(reptxt + Keys.ENTER) elif mode.lower() == '2' or mode.lower() == 'script/lyrical mode': for words in splitedlyrics: browser.find_element_by_xpath("//textarea").send_keys(words + Keys.ENTER) time.sleep(4) print( ''' |-} Done ! |-----------------------------------------------------------''') browser.quit()
def wpbombingwin(): from selenium import webdriver from selenium.webdriver.common.keys import Keys from selenium.webdriver.common.by import By from selenium.webdriver.support.ui import WebDriverWait from selenium.webdriver.support import expected_conditions as EC from selenium.webdriver.chrome.options import Options from about import menu, about import time import os import platform options = Options() options.add_argument("--log-level=3") wcr_dict = os.getcwd() + '//chromedriver.exe' browser = webdriver.Chrome(executable_path=wcr_dict, chrome_options=options) browser.get('https://web.whatsapp.com/') os.system('cls') about() menu() print(' |-> 4') try: confirm = WebDriverWait(browser, 600).until( EC.presence_of_element_located((By.CLASS_NAME, "_3BDr5"))) finally: pass browser.set_window_position(-10000, 0) wp_victim = input(" |-$ Victim's Phone Number (with country code) > ") bad_chars = ['+', ' ', '-'] for i in bad_chars: wp_victim = wp_victim.replace(i, '') mode = input(''' | |-PRESS------------------| | 1] Repetitive Mode | | 2] Script/Lyrical Mode | | Facing Problem ? | | Check out README.MD | |------------------------| |-> ''') if mode.lower() == '1' or mode.lower() == 'repetitive mode': reptxt = input( ' |-$ Word/Sentence that you want to send Multiple Times > ') repcount = int(input(' |-$ How many times ? > ')) elif mode.lower() == '2' or mode.lower() == 'script/lyrical mode': lyrics = open("lyrics.txt", "r+") splitedlyrics = (lyrics.read().split()) else: print(' |-} invalid input !') return browser.get( f'https://web.whatsapp.com/send?phone={wp_victim}&text&source&data&app_absent' ) try: confirm = WebDriverWait(browser, 60).until( EC.presence_of_element_located((By.CLASS_NAME, "_2O84H"))) finally: pass try: confirm = WebDriverWait(browser, 80).until( EC.presence_of_element_located((By.CLASS_NAME, "DuUXI"))) except: print(" |-} please recheck victim's mobile no. ") finally: pass if mode.lower() == '1' or mode.lower() == 'repetitive mode': for i in range(repcount): browser.find_elements_by_css_selector('.DuUXI div')[2].send_keys( reptxt + Keys.ENTER) elif mode.lower() == '2' or mode.lower() == 'script/lyrical mode': for words in splitedlyrics: browser.find_elements_by_css_selector('.DuUXI div')[2].send_keys( words + Keys.ENTER) time.sleep(5) print(''' |-} Done ! |-----------------------------------------------------------''') browser.quit()
ffmpegParam = ScrolledText(tk, width='78', height='6', wrap='word') ffParam = r'-f mpegts -muxrate 9M -b:v 8M -maxrate:v 8M -bufsize:v 8M -profile:v high -level:v 4.0 -c:v libx264 -pix_fmt yuv420p -sc_threshold 0 -g 25 -r 25 -refs 3 -x264-params bframes=2:b-adapt=0:force-cfr=1:b-pyramid=0:nal-hrd=cbr -c:a aac -ar 48000 -b:a 128k -ac 2 -flags +ilme+ildct -top 1' ffmpegParam.insert(1.0, ffParam) ffmpegParam.focus() # ConvertButton = Button( tk, text='Start', fg='green', command=lambda: outputAllVideos(ffmpegInstallPath.get(), videoFilesEntry.get(), ffmpegParam.get(1.0, END), outputPathEntry.get(), 'ts', export=1)) AboutButton = Button(tk, text='About', command=lambda: about.about()) ### tk界面布局 ffmpegInstallPathLabel.grid(row=0, column=0, sticky='e', ipadx=10) ffmpegInstallPath.grid(row=0, column=1, sticky='w', ipadx=266, pady=5) ffmpegInstallPathButton.grid(row=0, column=2, sticky='w') # videoFileLabel.grid(row=1, column=0, sticky='e', ipadx=10) videoFilesEntry.grid(row=1, column=1, sticky='w', ipadx=266, pady=5) videoFilesButton.grid(row=1, column=2, sticky='w') # outputPathLabel.grid(row=2, column=0, sticky='e', ipadx=10) outputPathEntry.grid(row=2, column=1, sticky='w', ipadx=266, pady=5) outputPathButton.grid(row=2, column=2, sticky='w') # ffmpegLabel.grid(row=3, column=0, sticky='ne', ipadx=10)
def on_aboutsoftwareaction_triggered(self): #打开"关于about" self.about1 = about() if (self.about1.exec_()): pass
def show_about(self): self.o = about.about() self.o.show()
def about(self): root = about.about() root.mainloop()