How to use the andriller.messages function in andriller

To help you get started, we’ve selected a few andriller examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github den4uk / andriller / andriller / windows.py View on Github external
assist_frame.pack(side=tk.LEFT)
        # Save
        self.save_this = ttk.Button(assist_frame, text='Save this..', command=self.save)
        # self.save_this = ttk.Button(assist_frame, text='Save this..')
        self.save_this.configure(state=tk.DISABLED)
        createToolTip(self.save_this, 'Save current screen capture to..')
        self.save_this.pack(side=tk.TOP, expand=0, fill=tk.X)
        # Report

        self.report_button = ttk.Button(assist_frame, textvar=self.REPCOUNT)
        self.report_button.bind('', self.report)
        self.report_button.configure(state=tk.DISABLED)
        createToolTip(self.report_button, 'Generate a report with created screen captures.\nNote: only works when Output is provided.')
        self.report_button.pack(side=tk.TOP, expand=0, fill=tk.X)
        # Guide
        ttk.Button(assist_frame, text='Help', command=messages.screen_guide).pack(side=tk.TOP, expand=0, fill=tk.X)
        # Note
        self.note_text = ttk.Entry(self.mainframe, width=27)
        self.note_text.configure(state=tk.DISABLED)
        self.note_text.bind("", self.capture)
        createToolTip(self.note_text, 'Type a comment press ENTER to Capture and Save.')
        # Snap
        self.snap_button = ttk.Button(self.mainframe, text='Capture', command=self.capture, takefocus=True)
        self.snap_button.grid(row=15, column=0, columnspan=1, sticky=(tk.W,))
        # Close
        ttk.Button(self.mainframe, text='Close', command=self.root.destroy)\
            .grid(row=15, column=1, columnspan=2, sticky=(tk.N, tk.E))

        self.remember_button = ttk.Checkbutton(self.mainframe, text='Remember', var=self.REMEMBER)
        createToolTip(self.remember_button, 'Keep last entered comment in field.')
        # Status
        status_frame = ttk.Frame(self.mainframe, padding=(5, 1), relief='groove')
github den4uk / andriller / andriller / windows.py View on Github external
def RunUsbExtraction(self, event):
        with disable_control(event):
            output_dir = self.OUTPUT.get()
            if not output_dir:
                messages.select_output()
            elif self.DeviceStatus.get().endswith('!'):
                messages.device_not_detected()
                return
            elif os.path.exists(output_dir):
                self.StatusMsg.set('Running...')
                drill = driller.ChainExecution(
                    output_dir,
                    status_msg=self.StatusMsg,
                    do_shared=self.extract_shared.get(),
                    use_adb=True,
                    logger=logger)
                drill.InitialAdbRead()
                drill.CreateWorkDir()
                drill.DataAcquisition(
                    run_backup=self.force_backup.get(),
                    shared=self.extract_shared.get(),)
                drill.DataExtraction()
                drill.DecodeShared()
github den4uk / andriller / andriller / windows.py View on Github external
def capture(self):
        self.status_label.configure(text='Capturing...', foreground="black")
        self.snap_button.configure(state=tk.DISABLED)
        img_obj = self.store.capture(self.note_text.get().rstrip())
        if img_obj is False:
            messagebox.showinfo('Content Protection Enabled', "It is not possible to capture this type of content.")
            self.snap_button.configure(text="Capture")
            self.snap_button.configure(state=tk.NORMAL)
            self.status_label.configure(text=messages.content_protect, foreground="blue")
        else:
            if self.store.output:
                self.REPCOUNT.set(f'Report ({self.store.count})')
            self.snap_button.configure(state=tk.NORMAL)
            self.status_label.configure(text='Ready')
            return self.display(img_obj)
github den4uk / andriller / andriller / windows.py View on Github external
def about_msg(self):
        messages.about_msg()