This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from textual.app import App, ComposeResult | |
from textual.widget import Widget | |
from textual.widgets import Static, Rule | |
from textual.containers import Vertical, Horizontal, VerticalScroll | |
from rich.text import Text | |
from typing import Callable | |
DEFAULT_SELECTED_FORMAT = "\\[{v} [@click='klick({i})']x[/]]" | |
DEFAULT_UNSELECTED_FORMAT = "\\[[@click='klick({i})']{v}[/]]" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from textual.app import App, ComposeResult | |
from lib import SaveCancel | |
class SkelApp(App): | |
"""A Textual app in which to drop test functionality.""" | |
def compose(self) -> ComposeResult: | |
"""Create child widgets for the app.""" | |
yield SaveCancel(self.report) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
''' | |
qtflask.py: Run a flask server as a subordinate thread to a Qt GUI application | |
''' | |
import sys | |
import threading | |
from PyQt6.QtWidgets import QApplication, QWidget, QPushButton, QMessageBox | |
from flask import Flask, jsonify | |
class App(QWidget): |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import tweepy | |
from BeautifulSoup import BeautifulSoup as parser | |
import urllib | |
consumer_key='' | |
consumer_secret='' | |
access_token='' | |
access_token_secret='' |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
NewerOlder