Cut-It
1.0@Release
Adds logic to the GUI class
Methods
No Documentation Provided
Determines whether to present an update window
Generates Bypassed Browser
Loads all user data into instance vars
Fills in UI with Settings if initialLoad
Loads the Settings into the GUI
Updates shortcut when user wants to view a separate one
Saves shortcut to memory when user is done editing
Inits custom keybindings for all user-defined shortcuts
Saves settings to data.json
Changes text of button to notify if update is needed or not
Submits feedback
Changes theme from current to reciprocal (applies on reboot)
(eg. light -> dark, dark -> light)
Triggered when the evidence box's text changes
Adds closing bracket ] when an opening one [ is typed
Returns list: [text of card, html of card]
Copies plain & rich text to clipboard IFF :param: copy -> True
Adds MLA & Debate-Grade Citation and/or article text to evidence box
Copies card to clipboard
Behavior for window close (saves card first)
Saves settings and reapplies them on tab change
Posts card objs to API for efficacy monitoring & paywall enforcement
& GitHub badge stats
Adds all cards to card history selector
Saves current card if it has data (is not blank)
Saves old card and opens new one
Loads most recent card (saves previous one as well and adds to card selector)
Deletes currently open card after second click for safety
Adds current card to card selector
Resets the delete status (clicked once) if the selected card changes
Adds MLA & Debate-Grade Citation & article text to evidence box
Adds MLA & Debate-Grade Citation to evidence box
Adds article text to evidence box
Triggers User Input for Directory and Saves Card as PDF
Returns cursor's start index and currently selected text in a tuple
Inserts formatted text at cursor position and reselects text
Copies text to clipboard
Styles text with Primary Emphasis
Styles text with Secondary Emphasis
Styles text with Tertiary Emphasis
Highlights text with Primary Highlight Color
Highlights text with Secondary Highlight Color
Bolds selected text
Underlines selected text
Italicises selected text
Clears Formatting on selected text
Minimizes Text
Returns bolded version of :param: text
Returns underlined version of :param: text
Returns italicised version of :param: text
Returns highlighted version of :param: text of the color :param: color
No Documentation Provided
Methods
Loads latest UI
Manually fill out the Card History groupBox (due to custom widgets)
No Documentation Provided
Adds in ToolTips
Adds in missing attrs.
Returns a formatted String to be inserted into the Distro box in the about section
No Documentation Provided
No Documentation Provided
No Documentation Provided
Methods
Returns (bool) if the card actually has data
Returns (dict) representation of the object
No Documentation Provided
Methods
:param: URL (str) - the URL for your citation
:desc: creates citation
gets raw citation data from API
formats raw citation date
Returns a list of missing attributes (key) or None (if all present)
Returns a simplified debate-ready citation
Returns an MLA 8 citation
No Documentation Provided
No Documentation Provided
Initializes both Card and Preferences storage
Returns (int) current card index
Sets the stored card index
Returns a dict of data.json
Writes to data.json
Returns the value of the inputted preference key
Sets the value of the inputted preference key to the
inputted value
Returns the value of the inputted shortcut key
Sets the value of the inputted shortcut key to the
inputted value
Returns a dict of cards.json
Writes to cards.json
Returns card at start OR at supplied index
Checks if a card contains information, if so adds it
to the end of cards.json, or if an index is
supplied it will overwrite the card at that pos
Deletes card at specified index
Returns current software version
Returns current software tag
Returns GitHub API Releases URL
Saves html to pdf with Selenium
Args:
body (str): the "body" section of the html
path (str): path to the save folder
cardName (str, optional): the name of the card (becomes filename). Defaults to "Cut-It Export".
No Documentation Provided
Methods
No Documentation Provided
No Documentation Provided
No Documentation Provided
No Documentation Provided
No Documentation Provided
No Documentation Provided
No Documentation Provided
Methods
No Documentation Provided
No Documentation Provided
No Documentation Provided
No Documentation Provided
No Documentation Provided
Methods
No Documentation Provided
No Documentation Provided
No Documentation Provided
Methods
Loads latest UI
Adds data about an update, if any
Opens download URL in Selenium Chrome
No Documentation Provided
No Documentation Provided
Searches GitHub Releases for new version of matching tag
No Documentation Provided