mirror of
https://github.com/gryf/pygtktalog.git
synced 2025-12-17 19:40:21 +01:00
* Added additional fields in configuration.
This commit is contained in:
15
config.py
15
config.py
@@ -32,17 +32,26 @@ class Config:
|
|||||||
ini = Ini()
|
ini = Ini()
|
||||||
|
|
||||||
confd = {
|
confd = {
|
||||||
|
'savewin' : True,
|
||||||
|
'savepan' : True,
|
||||||
'wx' : 800,
|
'wx' : 800,
|
||||||
'wy' : 600,
|
'wy' : 600,
|
||||||
'h' : 200,
|
'h' : 200,
|
||||||
'v' : 300,
|
'v' : 300,
|
||||||
'exportxls' : False,
|
'exportxls' : False,
|
||||||
'cd' : '/cdrom',
|
'cd' : '/cdrom',
|
||||||
'eject' : 'eject -r',
|
'ejectapp' : 'eject -r',
|
||||||
|
'eject' : True,
|
||||||
'pil': False,
|
'pil': False,
|
||||||
|
'gthumb':False,
|
||||||
|
'exif':False,
|
||||||
|
'confirmquit':True,
|
||||||
|
'confirmunsaved':True,
|
||||||
}
|
}
|
||||||
|
|
||||||
dictconf = {
|
dictconf = {
|
||||||
|
"save main window size" : "savewin",
|
||||||
|
"save panes size" : "savepan",
|
||||||
"main window width" : "wx",
|
"main window width" : "wx",
|
||||||
"main window height": "wy",
|
"main window height": "wy",
|
||||||
"horizontal panes": "h",
|
"horizontal panes": "h",
|
||||||
@@ -51,9 +60,11 @@ class Config:
|
|||||||
"cd drive":"cd",
|
"cd drive":"cd",
|
||||||
"eject command":"eject",
|
"eject command":"eject",
|
||||||
"image support":"pil",
|
"image support":"pil",
|
||||||
|
'confirm quit':'confirmquit',
|
||||||
|
'warn unsaved':'confirmunsaved',
|
||||||
}
|
}
|
||||||
|
|
||||||
dbool = ('exportxls','pil')
|
dbool = ('exportxls','pil','savewin','savepan','eject','gthumb','exif')
|
||||||
dstring = ('cd','eject')
|
dstring = ('cd','eject')
|
||||||
|
|
||||||
try:
|
try:
|
||||||
|
|||||||
Reference in New Issue
Block a user