summaryrefslogtreecommitdiff
path: root/misc/pylib/robofab/interface/all/dialogs_default.py
blob: c513aa9b7726e98962fede187786232f3db0afe0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
"""

    Dialog prototypes.
    
    These are loaded before any others. So if a specific platform implementation doesn't
    have all functions, these will make sure a NotImplemtedError is raised.
    
    http://www.robofab.org/tools/dialogs.html
    
"""

__all__ = [
    "AskString",
    "AskYesNoCancel",
    "FindGlyph",
    "GetFile",
    "GetFolder",
    "GetFileOrFolder", 
    "Message",
    "OneList",
    "PutFile",
    "SearchList",
    "SelectFont",
    "SelectGlyph",
    "TwoChecks",
    "TwoFields",
    "ProgressBar",
]

# start with all the defaults. 

def AskString(message, value='', title='RoboFab'):
    raise NotImplementedError

def AskYesNoCancel(message, title='RoboFab', default=0):
    raise NotImplementedError

def FindGlyph(font, message="Search for a glyph:", title='RoboFab'):
    raise NotImplementedError

def GetFile(message=None):
    raise NotImplementedError

def GetFolder(message=None):
    raise NotImplementedError

def GetFileOrFolder(message=None):
    raise NotImplementedError

def Message(message, title='RoboFab'):
    raise NotImplementedError

def OneList(list, message="Select an item:", title='RoboFab'):
    raise PendingDeprecationWarning
    
def PutFile(message=None, fileName=None):
    raise NotImplementedError

def SearchList(list, message="Select an item:", title='RoboFab'):
    raise NotImplementedError

def SelectFont(message="Select a font:", title='RoboFab'):
    raise NotImplementedError

def SelectGlyph(font, message="Select a glyph:", title='RoboFab'):
    raise NotImplementedError

def TwoChecks(title_1="One",  title_2="Two", value1=1, value2=1, title='RoboFab'):
    raise PendingDeprecationWarning

def TwoFields(title_1="One:", value_1="0", title_2="Two:", value_2="0", title='RoboFab'):
    raise PendingDeprecationWarning

class ProgressBar(object):
    pass