Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(4)  |  Call(2)  |  Derive(0)  |  Import(2)

        def input_box(title, message):
    try:
        data = subprocess.check_output(['zenity', '--title=' + title,
                                        '--entry', '--text=' + message,
                                        '--width', '500'])
    except subprocess.CalledProcessError:
        return None
    return data.decode().strip()
        


src/m/p/mpdc-HEAD/mpdc/mpdc_collections.py   mpdc(Download)
from mpdc.initialize import mpd, collectionsmanager, cache, colors, columns, \
                            enable_pager, pager
from mpdc.libs.utils import input_box, esc_quotes, info, warning, colorize, \
                            columns_width
from mpdc.libs.parser import parser
 
    if len(sys.argv) == 1:
        cmd = input_box('mpdc-collections', 'Command for mpdc-collections:')
        if cmd is None or not cmd:
            sys.exit(0)

src/m/p/mpdc-HEAD/mpdc/mpdc_playlist.py   mpdc(Download)
 
from mpdc.initialize import mpd
from mpdc.libs.utils import input_box
from mpdc.libs.parser import parser
 
 
    if len(sys.argv) == 1:
        cmd = input_box('mpdc-playlist', 'Command for mpdc-playlist:')
        if cmd is None or not cmd:
            sys.exit(0)