pycrossword
0.2
Pure-Python implementation of a crossword puzzle generator and editor
|
Classes | |
class | JsonHiliter |
Syntax highlighter class for JSON. More... | |
class | QThreadStump |
Functions | |
def | is_iterable (obj) |
def | getosname () |
def | generate_uuid () |
def | walk_dir (root_path, abs_path=True, recurse=True, dir_process_function=None, file_process_function=None, file_types=None) |
def | run_exe (args, external=False, capture_output=True, stdout=subprocess.PIPE, encoding=ENCODING, timeout=None, shell=False, **kwargs) |
def | datetime_to_str (dt=None, strformat='%Y-%m-%d %H-%M-%S') |
def | timestamp_to_str (ts=None, strformat='%Y-%m-%d %H-%M-%S') |
def | str_to_datetime (text, strformat='%Y-%m-%d %H-%M-%S') |
def | str_to_timestamp (text, strformat='%Y-%m-%d %H-%M-%S') |
def | get_tempdir () |
def | bytes_human (value, suffix='B') |
def | restart_app (closefunction) |
def | file_types_registered (filetypes=('xpf', 'ipuz', 'pxjson')) |
def | register_file_types (filetypes=('xpf', 'ipuz', 'pxjson'), register=True) |
def | make_font (family, size=-1, weight=-1, italic=False, font_unit='pt') |
def | MsgBox (what, parent=None, title='pyCross', msgtype='info', btn=None, detailedText='', infoText='', execnow=True) |
def | UserInput (dialogtype='text', parent=None, title='pyCross', label='', value=None, textmode='normal', valrange=None, decimals=1, step=1, comboeditable=True, comboitems=[]) |
def | clipboard_copy (value, valtype='text') |
def | clipboard_get (valtype='text') |
def | clipboard_clear () |
def | stylesheet_load (style, dequote=True, strip_sz=True, units=('pt', 'px')) |
def | stylesheet_dump (d, quoted_keys=('font-family',), add_units={ 'font-size':'pt', 'border':'px', 'border-width':'px'}) |
def | font_weight_css2qt (weight, default=0) |
def | font_weight_qt2css (weight, default=0) |
def | font_from_stylesheet (style, font_unit='pt', default_font=None) |
def | font_to_stylesheet (font, style, font_unit='pt') |
def | color_from_stylesheet (style, tag='background-color', default='black') |
def | color_to_stylesheet (color, style, tag='background-color') |
def | property_to_stylesheet (propname, propvalue, style) |
def | property_from_stylesheet (propname, style, default=None) |
Variables | |
dictionary | MSGBOX_BUTTONS |
dictionary | MSGBOX_TYPES |
def pycross.utils.utils.bytes_human | ( | value, | |
suffix = 'B' |
|||
) |
def pycross.utils.utils.clipboard_clear | ( | ) |
def pycross.utils.utils.clipboard_copy | ( | value, | |
valtype = 'text' |
|||
) |
def pycross.utils.utils.clipboard_get | ( | valtype = 'text' | ) |
def pycross.utils.utils.color_from_stylesheet | ( | style, | |
tag = 'background-color' , |
|||
default = 'black' |
|||
) |
def pycross.utils.utils.color_to_stylesheet | ( | color, | |
style, | |||
tag = 'background-color' |
|||
) |
def pycross.utils.utils.datetime_to_str | ( | dt = None , |
|
strformat = '%Y-%m-%d %H-%M-%S' |
|||
) |
def pycross.utils.utils.file_types_registered | ( | filetypes = ('xpf', 'ipuz', 'pxjson') | ) |
def pycross.utils.utils.font_from_stylesheet | ( | style, | |
font_unit = 'pt' , |
|||
default_font = None |
|||
) |
def pycross.utils.utils.font_to_stylesheet | ( | font, | |
style, | |||
font_unit = 'pt' |
|||
) |
def pycross.utils.utils.font_weight_css2qt | ( | weight, | |
default = 0 |
|||
) |
def pycross.utils.utils.font_weight_qt2css | ( | weight, | |
default = 0 |
|||
) |
def pycross.utils.utils.generate_uuid | ( | ) |
def pycross.utils.utils.get_tempdir | ( | ) |
def pycross.utils.utils.getosname | ( | ) |
def pycross.utils.utils.is_iterable | ( | obj | ) |
def pycross.utils.utils.make_font | ( | family, | |
size = -1 , |
|||
weight = -1 , |
|||
italic = False , |
|||
font_unit = 'pt' |
|||
) |
def pycross.utils.utils.MsgBox | ( | what, | |
parent = None , |
|||
title = 'pyCross' , |
|||
msgtype = 'info' , |
|||
btn = None , |
|||
detailedText = '' , |
|||
infoText = '' , |
|||
execnow = True |
|||
) |
def pycross.utils.utils.property_from_stylesheet | ( | propname, | |
style, | |||
default = None |
|||
) |
def pycross.utils.utils.property_to_stylesheet | ( | propname, | |
propvalue, | |||
style | |||
) |
def pycross.utils.utils.register_file_types | ( | filetypes = ('xpf', 'ipuz', 'pxjson') , |
|
register = True |
|||
) |
def pycross.utils.utils.restart_app | ( | closefunction | ) |
def pycross.utils.utils.run_exe | ( | args, | |
external = False , |
|||
capture_output = True , |
|||
stdout = subprocess.PIPE , |
|||
encoding = ENCODING , |
|||
timeout = None , |
|||
shell = False , |
|||
** | kwargs | ||
) |
def pycross.utils.utils.str_to_datetime | ( | text, | |
strformat = '%Y-%m-%d %H-%M-%S' |
|||
) |
def pycross.utils.utils.str_to_timestamp | ( | text, | |
strformat = '%Y-%m-%d %H-%M-%S' |
|||
) |
def pycross.utils.utils.stylesheet_dump | ( | d, | |
quoted_keys = ('font-family',) , |
|||
add_units = {'font-size': 'pt', 'border': 'px', 'border-width': 'px'} |
|||
) |
def pycross.utils.utils.stylesheet_load | ( | style, | |
dequote = True , |
|||
strip_sz = True , |
|||
units = ('pt', 'px') |
|||
) |
def pycross.utils.utils.timestamp_to_str | ( | ts = None , |
|
strformat = '%Y-%m-%d %H-%M-%S' |
|||
) |
def pycross.utils.utils.UserInput | ( | dialogtype = 'text' , |
|
parent = None , |
|||
title = 'pyCross' , |
|||
label = '' , |
|||
value = None , |
|||
textmode = 'normal' , |
|||
valrange = None , |
|||
decimals = 1 , |
|||
step = 1 , |
|||
comboeditable = True , |
|||
comboitems = [] |
|||
) |
def pycross.utils.utils.walk_dir | ( | root_path, | |
abs_path = True , |
|||
recurse = True , |
|||
dir_process_function = None , |
|||
file_process_function = None , |
|||
file_types = None |
|||
) |
dictionary pycross.utils.utils.MSGBOX_BUTTONS |
dictionary pycross.utils.utils.MSGBOX_TYPES |