Advertisement
1400_SpaceCat

wpsettings_gtk

May 8th, 2016
147
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 1.95 KB | None | 0 0
  1. import locale
  2.  
  3. class IOR:
  4.     __version_taskbar = 0.5
  5.     __version_appbar = 0.2
  6.     currentLocale = locale.getdefaultlocale()[0]
  7.  
  8.     settings = {
  9.     "ru_RU":{
  10.         "settingsWidgetCategories":[
  11.             #top categories menu#
  12.             ("Офис","applications-office",18),
  13.             ("Обучение","user-bookmarks",18),
  14.             ("Система","user-home",18),
  15.             ("Настройки","emblem-system",18),
  16.         ],
  17.  
  18.         "settingsResources":{
  19.             "folderWorkdir":{
  20.                 "rootUserFolder":"workdir/",
  21.                 "programming":[
  22.                     "Программирование",
  23.                     "Pascal",
  24.                     "Basic",
  25.                     "C++",
  26.                     "C",
  27.                     "Python",
  28.                     "HTML",
  29.                     "CSS",
  30.                     "JavaScript",
  31.                     ],
  32.                
  33.                 "naturalscience":[
  34.                     "Точные науки"
  35.                     "Физика",
  36.                     "Математика",
  37.                     ],
  38.                 "otherscience":[
  39.                     "Прочие науки",
  40.                     "Русский язык",
  41.                     "Литература",
  42.                     "История",
  43.                     "Обществоведение",
  44.                 ],
  45.                
  46.                 },
  47.  
  48.             "folderResources":"resources/",
  49.             "folderModules":"modules/",
  50.             "folderThemes":"themes/",
  51.             "folderThemeName":"standard/",
  52.             "fileCss":"theme.css",
  53.             "folderCssTerminal":"wpsterminal/",
  54.             "folderIcons":"icons/",
  55.             "folderSounds":"sounds/",
  56.             "folderPictures":"pictures/",
  57.            
  58.             "bashrc":".bashrc",
  59.  
  60.         },
  61.  
  62.         "settingsApplications":{
  63.             #put here your applications#
  64.             #"Category name":{#
  65.             #"Program name":"path or system name",#
  66.             #. . .#
  67.             #},#
  68.         },
  69.         "settingsWindows":{
  70.             "windowMainBool":True,
  71.             "buttonMenuSlideBool":None,
  72.         },
  73.  
  74.         "settingsTitles":{
  75.             "taskbarMain":"taskbar v.%s" % __version_taskbar,
  76.             "buttonMenuSlideOpen":"Открыть меню",
  77.             "buttonMenuSlideClose":"Скрыть меню",
  78.             "appbarMain":"appbar v.%s" % __version_appbar,
  79.         },
  80.     }}#end
  81.  
  82. root = IOR.settings[IOR.currentLocale]["settingsWidgetCategories"]
  83. # print([i[1] for i in root])
  84.  
  85. for i in range(len([i[0] for i in root])):
  86.     print(root[i][1],root[i][2])
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement