Changeset 3946
- Timestamp:
- Mar 15, 2017, 11:55:09 AM (4 years ago)
- Location:
- lliurex-gdrive/trunk/fuentes
- Files:
-
- 7 added
- 3 deleted
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
lliurex-gdrive/trunk/fuentes/lliurex-gdrive-gui.install/usr/share/lliurex-gdrive/Core.py
r3943 r3946 1 2 #!/usr/bin/env python 3 1 4 #import LliurexGoogleDriveManager 2 5 import lliurex.lliurexgdrive -
lliurex-gdrive/trunk/fuentes/lliurex-gdrive-gui.install/usr/share/lliurex-gdrive/LliurexGdrive.py
r3812 r3946 1 #!/usr/bin/env python 2 1 3 import gi 2 4 gi.require_version('Gtk', '3.0') … … 15 17 16 18 17 RSRC=" ./"19 RSRC="/usr/share/lliurex-gdrive/" 18 20 #CONFIG_DIR=os.path.expanduser("~/.config/lliurex-google-drive-profiles/config") 21 CSS_FILE="/usr/share/lliurex-gdrive/lliurex-gdrive.css" 22 LOCK_PATH="~/.config/lliurex-google-drive-profiles/lgdIndicator.lock" 23 19 24 20 25 class LliurexGdrive: … … 29 34 30 35 builder=Gtk.Builder() 31 ui_path=RSRC + " /rsrc/lliurex-gdrive.ui"36 ui_path=RSRC + "rsrc/lliurex-gdrive.ui" 32 37 builder.add_from_file(ui_path) 33 38 … … 68 73 69 74 self.style_provider=Gtk.CssProvider() 70 f=Gio.File.new_for_path( "lliurex-gdrive.css")75 f=Gio.File.new_for_path(CSS_FILE) 71 76 self.style_provider.load_from_file(f) 72 77 Gtk.StyleContext.add_provider_for_screen(Gdk.Screen.get_default(),self.style_provider,Gtk.STYLE_PROVIDER_PRIORITY_APPLICATION) … … 83 88 #def connect_signals 84 89 90 def launch_indicator(self): 91 92 self.lockpath=R=os.path.expanduser(LOCK_PATH) 93 if not os.path.exists(self.lockpath): 94 cmd="lliurexGdriveIndicator.py" + "&" 95 os.system(cmd) 96 97 85 98 def quit(self,widget): 86 87 99 100 self.launch_indicator() 101 88 102 Gtk.main_quit() 89 103 -
lliurex-gdrive/trunk/fuentes/lliurex-gdrive-gui.install/usr/share/lliurex-gdrive/ProfileBox.py
r3943 r3946 1 #!/usr/bin/env python 2 3 1 4 import gi 2 5 gi.require_version('Gtk', '3.0') … … 21 24 22 25 23 RSRC="./" 26 RSRC="/usr/share/lliurex-gdrive/" 27 CSS_FILE="/usr/share/lliurex-gdrive/lliurex-gdrive.css" 24 28 PROFILE_IMAGE=RSRC+"rsrc/profile.svg" 25 29 FOLDER_IMAGE=RSRC+"rsrc/folder.svg" … … 112 116 self.style_provider=Gtk.CssProvider() 113 117 114 f=Gio.File.new_for_path( "lliurex-gdrive.css")118 f=Gio.File.new_for_path(CSS_FILE) 115 119 self.style_provider.load_from_file(f) 116 120 -
lliurex-gdrive/trunk/fuentes/lliurex-gdrive-gui.install/usr/share/lliurex-gdrive/lliurex-gdrive.py
r3775 r3946 1 1 #!/usr/bin/env python 2 2 3 import Core 3 4
Note: See TracChangeset
for help on using the changeset viewer.