Pythonize glade, PEP8
This commit is contained in:
parent
413f8c2af9
commit
90f2978a08
|
@ -5,7 +5,7 @@
|
||||||
#
|
#
|
||||||
# This program is free software: you can redistribute it and/or modify it
|
# This program is free software: you can redistribute it and/or modify it
|
||||||
# under the terms of the GNU General Public License as published by
|
# under the terms of the GNU General Public License as published by
|
||||||
# the Free Software Foundation, either version 3 of the License, or
|
# the Free Software Foundation, either version 3 of the License, or
|
||||||
# (at your option) any later version.
|
# (at your option) any later version.
|
||||||
#
|
#
|
||||||
# This program is distributed in the hope that it will be useful, but
|
# This program is distributed in the hope that it will be useful, but
|
||||||
|
|
|
@ -657,12 +657,12 @@
|
||||||
<property name="use_preview_label">False</property>
|
<property name="use_preview_label">False</property>
|
||||||
<signal name="update-preview" handler="on_filechooserdialog_update_preview" swapped="no"/>
|
<signal name="update-preview" handler="on_filechooserdialog_update_preview" swapped="no"/>
|
||||||
<child internal-child="vbox">
|
<child internal-child="vbox">
|
||||||
<object class="GtkBox" id="filechooserdialog-vbox1">
|
<object class="GtkBox" id="filechooserdialog_vbox1">
|
||||||
<property name="can_focus">False</property>
|
<property name="can_focus">False</property>
|
||||||
<property name="orientation">vertical</property>
|
<property name="orientation">vertical</property>
|
||||||
<property name="spacing">2</property>
|
<property name="spacing">2</property>
|
||||||
<child internal-child="action_area">
|
<child internal-child="action_area">
|
||||||
<object class="GtkButtonBox" id="filechooserdialog-action_area1">
|
<object class="GtkButtonBox" id="filechooserdialog_action_area1">
|
||||||
<property name="can_focus">False</property>
|
<property name="can_focus">False</property>
|
||||||
<property name="layout_style">end</property>
|
<property name="layout_style">end</property>
|
||||||
<child>
|
<child>
|
||||||
|
|
|
@ -33,6 +33,8 @@ from mugshot_lib import helpers
|
||||||
from mugshot_lib.CameraDialog import CameraDialog
|
from mugshot_lib.CameraDialog import CameraDialog
|
||||||
|
|
||||||
Clutter.init(None)
|
Clutter.init(None)
|
||||||
|
|
||||||
|
|
||||||
class CameraBox(GtkClutter.Embed):
|
class CameraBox(GtkClutter.Embed):
|
||||||
__gsignals__ = {
|
__gsignals__ = {
|
||||||
'photo-saved': (GObject.SIGNAL_RUN_LAST,
|
'photo-saved': (GObject.SIGNAL_RUN_LAST,
|
||||||
|
@ -42,27 +44,29 @@ class CameraBox(GtkClutter.Embed):
|
||||||
GObject.TYPE_NONE,
|
GObject.TYPE_NONE,
|
||||||
(GObject.TYPE_INT,))
|
(GObject.TYPE_INT,))
|
||||||
}
|
}
|
||||||
|
|
||||||
def __init__(self, parent):
|
def __init__(self, parent):
|
||||||
GtkClutter.Embed.__init__(self)
|
GtkClutter.Embed.__init__(self)
|
||||||
self.state = Gst.State.NULL
|
self.state = Gst.State.NULL
|
||||||
self.parent = parent
|
self.parent = parent
|
||||||
|
|
||||||
self.stage = self.get_stage()
|
self.stage = self.get_stage()
|
||||||
self.layout_manager = Clutter.BoxLayout()
|
self.layout_manager = Clutter.BoxLayout()
|
||||||
|
|
||||||
self.scroll = Clutter.ScrollActor.new()
|
self.scroll = Clutter.ScrollActor.new()
|
||||||
self.scroll.set_scroll_mode(Clutter.ScrollMode.HORIZONTALLY)
|
self.scroll.set_scroll_mode(Clutter.ScrollMode.HORIZONTALLY)
|
||||||
|
|
||||||
self.textures_box = Clutter.Actor(layout_manager=self.layout_manager)
|
self.textures_box = Clutter.Actor(layout_manager=self.layout_manager)
|
||||||
self.textures_box.set_x_align(Clutter.ActorAlign.CENTER)
|
self.textures_box.set_x_align(Clutter.ActorAlign.CENTER)
|
||||||
|
|
||||||
self.scroll.add_actor(self.textures_box)
|
self.scroll.add_actor(self.textures_box)
|
||||||
self.stage.add_actor(self.scroll)
|
self.stage.add_actor(self.scroll)
|
||||||
|
|
||||||
self.video_texture = Clutter.Texture.new()
|
self.video_texture = Clutter.Texture.new()
|
||||||
|
|
||||||
self.layout_manager.pack(self.video_texture, expand=True, x_fill=False, y_fill=False, x_align=Clutter.BoxAlignment.CENTER, y_align=Clutter.BoxAlignment.CENTER)
|
self.layout_manager.pack(
|
||||||
|
self.video_texture, expand=True, x_fill=False, y_fill=False,
|
||||||
|
x_align=Clutter.BoxAlignment.CENTER, y_align=Clutter.BoxAlignment.CENTER)
|
||||||
|
|
||||||
self.camera = Cheese.Camera.new(self.video_texture, None, 100, 100)
|
self.camera = Cheese.Camera.new(self.video_texture, None, 100, 100)
|
||||||
Cheese.Camera.setup(self.camera, None)
|
Cheese.Camera.setup(self.camera, None)
|
||||||
|
@ -73,32 +77,32 @@ class CameraBox(GtkClutter.Embed):
|
||||||
node = data.get_device_node()
|
node = data.get_device_node()
|
||||||
self.camera.set_device_by_device_node(node)
|
self.camera.set_device_by_device_node(node)
|
||||||
self.camera.switch_camera_device()
|
self.camera.switch_camera_device()
|
||||||
|
|
||||||
device_monitor=Cheese.CameraDeviceMonitor.new()
|
device_monitor = Cheese.CameraDeviceMonitor.new()
|
||||||
device_monitor.connect("added", added)
|
device_monitor.connect("added", added)
|
||||||
device_monitor.coldplug()
|
device_monitor.coldplug()
|
||||||
|
|
||||||
self.connect("size-allocate", self.on_size_allocate)
|
self.connect("size-allocate", self.on_size_allocate)
|
||||||
self.camera.connect("photo-taken", self.on_photo_taken)
|
self.camera.connect("photo-taken", self.on_photo_taken)
|
||||||
self.camera.connect("state-flags-changed", self.on_state_flags_changed)
|
self.camera.connect("state-flags-changed", self.on_state_flags_changed)
|
||||||
|
|
||||||
self._save_filename = ""
|
self._save_filename = ""
|
||||||
|
|
||||||
def on_state_flags_changed(self, camera, state):
|
def on_state_flags_changed(self, camera, state):
|
||||||
self.state = state
|
self.state = state
|
||||||
self.emit("gst-state-changed", self.state)
|
self.emit("gst-state-changed", self.state)
|
||||||
|
|
||||||
def play(self):
|
def play(self):
|
||||||
if self.state != Gst.State.PLAYING:
|
if self.state != Gst.State.PLAYING:
|
||||||
Cheese.Camera.play(self.camera)
|
Cheese.Camera.play(self.camera)
|
||||||
|
|
||||||
def pause(self):
|
def pause(self):
|
||||||
if self.state == Gst.State.PLAYING:
|
if self.state == Gst.State.PLAYING:
|
||||||
Cheese.Camera.play(self.camera)
|
Cheese.Camera.play(self.camera)
|
||||||
|
|
||||||
def stop(self):
|
def stop(self):
|
||||||
Cheese.Camera.stop(self.camera)
|
Cheese.Camera.stop(self.camera)
|
||||||
|
|
||||||
def on_size_allocate(self, widget, allocation):
|
def on_size_allocate(self, widget, allocation):
|
||||||
vheight = self.video_texture.get_height()
|
vheight = self.video_texture.get_height()
|
||||||
vwidth = self.video_texture.get_width()
|
vwidth = self.video_texture.get_width()
|
||||||
|
@ -106,24 +110,24 @@ class CameraBox(GtkClutter.Embed):
|
||||||
vformat = self.camera.get_current_video_format()
|
vformat = self.camera.get_current_video_format()
|
||||||
vheight = vformat.height
|
vheight = vformat.height
|
||||||
vwidth = vformat.width
|
vwidth = vformat.width
|
||||||
|
|
||||||
height = allocation.height
|
height = allocation.height
|
||||||
mult = vheight / height
|
mult = vheight / height
|
||||||
width = round(vwidth / mult,1)
|
width = round(vwidth / mult, 1)
|
||||||
|
|
||||||
self.video_texture.set_height(height)
|
self.video_texture.set_height(height)
|
||||||
self.video_texture.set_width(width)
|
self.video_texture.set_width(width)
|
||||||
|
|
||||||
point = Clutter.Point()
|
point = Clutter.Point()
|
||||||
point.x = (self.video_texture.get_width() - allocation.width) / 2
|
point.x = (self.video_texture.get_width() - allocation.width) / 2
|
||||||
point.y = 0
|
point.y = 0
|
||||||
|
|
||||||
self.scroll.scroll_to_point(point)
|
self.scroll.scroll_to_point(point)
|
||||||
|
|
||||||
def take_photo(self, target_filename):
|
def take_photo(self, target_filename):
|
||||||
self._save_filename = target_filename
|
self._save_filename = target_filename
|
||||||
return self.camera.take_photo_pixbuf()
|
return self.camera.take_photo_pixbuf()
|
||||||
|
|
||||||
def on_photo_taken(self, camera, pixbuf):
|
def on_photo_taken(self, camera, pixbuf):
|
||||||
# Get the image dimensions.
|
# Get the image dimensions.
|
||||||
height = pixbuf.get_height()
|
height = pixbuf.get_height()
|
||||||
|
@ -144,17 +148,18 @@ class CameraBox(GtkClutter.Embed):
|
||||||
|
|
||||||
# Overwrite the temporary file with our new cropped image.
|
# Overwrite the temporary file with our new cropped image.
|
||||||
new_pixbuf.savev(self._save_filename, "png", [], [])
|
new_pixbuf.savev(self._save_filename, "png", [], [])
|
||||||
|
|
||||||
self.emit("photo-saved", self._save_filename)
|
self.emit("photo-saved", self._save_filename)
|
||||||
|
|
||||||
|
|
||||||
class CameraMugshotDialog(CameraDialog):
|
class CameraMugshotDialog(CameraDialog):
|
||||||
|
|
||||||
"""Camera Capturing Dialog"""
|
"""Camera Capturing Dialog"""
|
||||||
__gtype_name__ = "CameraMugshotDialog"
|
__gtype_name__ = "CameraMugshotDialog"
|
||||||
__gsignals__ = {'apply': (GObject.SIGNAL_RUN_LAST,
|
__gsignals__ = {'apply': (GObject.SIGNAL_RUN_LAST,
|
||||||
GObject.TYPE_NONE,
|
GObject.TYPE_NONE,
|
||||||
(GObject.TYPE_STRING,))
|
(GObject.TYPE_STRING,))
|
||||||
}
|
}
|
||||||
|
|
||||||
def finish_initializing(self, builder): # pylint: disable=E1002
|
def finish_initializing(self, builder): # pylint: disable=E1002
|
||||||
"""Set up the camera dialog"""
|
"""Set up the camera dialog"""
|
||||||
|
@ -162,10 +167,10 @@ class CameraMugshotDialog(CameraDialog):
|
||||||
|
|
||||||
# Initialize Gst or nothing will work.
|
# Initialize Gst or nothing will work.
|
||||||
Gst.init(None)
|
Gst.init(None)
|
||||||
|
|
||||||
self.camera = CameraBox(self)
|
self.camera = CameraBox(self)
|
||||||
self.camera.show()
|
self.camera.show()
|
||||||
|
|
||||||
self.camera.connect("gst-state-changed", self.on_camera_state_changed)
|
self.camera.connect("gst-state-changed", self.on_camera_state_changed)
|
||||||
self.camera.connect("photo-saved", self.on_camera_photo_saved)
|
self.camera.connect("photo-saved", self.on_camera_photo_saved)
|
||||||
|
|
||||||
|
@ -181,24 +186,24 @@ class CameraMugshotDialog(CameraDialog):
|
||||||
self.filename = None
|
self.filename = None
|
||||||
|
|
||||||
self.show_all()
|
self.show_all()
|
||||||
|
|
||||||
def on_camera_state_changed(self, widget, state):
|
def on_camera_state_changed(self, widget, state):
|
||||||
if state == Gst.State.PLAYING or self.apply_button.get_sensitive():
|
if state == Gst.State.PLAYING or self.apply_button.get_sensitive():
|
||||||
self.record_button.set_sensitive(True)
|
self.record_button.set_sensitive(True)
|
||||||
else:
|
else:
|
||||||
self.record_button.set_sensitive(False)
|
self.record_button.set_sensitive(False)
|
||||||
|
|
||||||
def on_camera_photo_saved(self, widget, filename):
|
def on_camera_photo_saved(self, widget, filename):
|
||||||
self.filename = filename
|
self.filename = filename
|
||||||
self.apply_button.set_sensitive(True)
|
self.apply_button.set_sensitive(True)
|
||||||
self.camera.pause()
|
self.camera.pause()
|
||||||
|
|
||||||
def play(self):
|
def play(self):
|
||||||
self.camera.play()
|
self.camera.play()
|
||||||
|
|
||||||
def pause(self):
|
def pause(self):
|
||||||
self.camera.pause()
|
self.camera.pause()
|
||||||
|
|
||||||
def stop(self):
|
def stop(self):
|
||||||
self.camera.stop()
|
self.camera.stop()
|
||||||
|
|
||||||
|
@ -242,7 +247,7 @@ class CameraMugshotDialog(CameraDialog):
|
||||||
def on_camera_cancel_clicked(self, widget):
|
def on_camera_cancel_clicked(self, widget):
|
||||||
"""When the Cancel button is clicked, just hide the dialog."""
|
"""When the Cancel button is clicked, just hide the dialog."""
|
||||||
self.hide()
|
self.hide()
|
||||||
|
|
||||||
def on_camera_mugshot_dialog_destroy(self, widget, data=None):
|
def on_camera_mugshot_dialog_destroy(self, widget, data=None):
|
||||||
"""When the application exits, remove the current temporary file and
|
"""When the application exits, remove the current temporary file and
|
||||||
stop the gstreamer element."""
|
stop the gstreamer element."""
|
||||||
|
|
|
@ -160,6 +160,7 @@ def menu_position(self, menu, data=None, something_else=None):
|
||||||
|
|
||||||
# See mugshot_lib.Window.py for more details about how this class works
|
# See mugshot_lib.Window.py for more details about how this class works
|
||||||
class MugshotWindow(Window):
|
class MugshotWindow(Window):
|
||||||
|
|
||||||
"""Mugshot GtkWindow"""
|
"""Mugshot GtkWindow"""
|
||||||
__gtype_name__ = "MugshotWindow"
|
__gtype_name__ = "MugshotWindow"
|
||||||
|
|
||||||
|
|
|
@ -37,6 +37,7 @@ from xml.etree.cElementTree import ElementTree
|
||||||
# pylint: disable=R0904
|
# pylint: disable=R0904
|
||||||
# the many public methods is a feature of Gtk.Builder
|
# the many public methods is a feature of Gtk.Builder
|
||||||
class Builder(Gtk.Builder):
|
class Builder(Gtk.Builder):
|
||||||
|
|
||||||
''' extra features
|
''' extra features
|
||||||
connects glade defined handler to default_handler if necessary
|
connects glade defined handler to default_handler if necessary
|
||||||
auto connects widget to handler with matching name or alias
|
auto connects widget to handler with matching name or alias
|
||||||
|
@ -164,7 +165,9 @@ class Builder(Gtk.Builder):
|
||||||
# this class deliberately does not provide any public interfaces
|
# this class deliberately does not provide any public interfaces
|
||||||
# apart from the glade widgets
|
# apart from the glade widgets
|
||||||
class UiFactory():
|
class UiFactory():
|
||||||
|
|
||||||
''' provides an object with attributes as glade widgets'''
|
''' provides an object with attributes as glade widgets'''
|
||||||
|
|
||||||
def __init__(self, widget_dict):
|
def __init__(self, widget_dict):
|
||||||
"""Initialize the UiFactory."""
|
"""Initialize the UiFactory."""
|
||||||
self._widget_dict = widget_dict
|
self._widget_dict = widget_dict
|
||||||
|
|
|
@ -24,6 +24,7 @@ from . helpers import get_builder
|
||||||
|
|
||||||
|
|
||||||
class CameraDialog(Gtk.Dialog):
|
class CameraDialog(Gtk.Dialog):
|
||||||
|
|
||||||
"""Camera Dialog"""
|
"""Camera Dialog"""
|
||||||
__gtype_name__ = "CameraDialog"
|
__gtype_name__ = "CameraDialog"
|
||||||
|
|
||||||
|
|
|
@ -89,6 +89,7 @@ def env_spawn(command, timeout):
|
||||||
|
|
||||||
|
|
||||||
class SudoDialog(Gtk.Dialog):
|
class SudoDialog(Gtk.Dialog):
|
||||||
|
|
||||||
'''
|
'''
|
||||||
Creates a new SudoDialog. This is a replacement for using gksudo which
|
Creates a new SudoDialog. This is a replacement for using gksudo which
|
||||||
provides additional flexibility when performing sudo commands.
|
provides additional flexibility when performing sudo commands.
|
||||||
|
@ -108,6 +109,7 @@ class SudoDialog(Gtk.Dialog):
|
||||||
- REJECT: Password invalid.
|
- REJECT: Password invalid.
|
||||||
- ACCEPT: Password valid.
|
- ACCEPT: Password valid.
|
||||||
'''
|
'''
|
||||||
|
|
||||||
def __init__(self, title=None, parent=None, icon=None, message=None,
|
def __init__(self, title=None, parent=None, icon=None, message=None,
|
||||||
name=None, retries=-1):
|
name=None, retries=-1):
|
||||||
"""Initialize the SudoDialog."""
|
"""Initialize the SudoDialog."""
|
||||||
|
|
|
@ -26,6 +26,7 @@ from . helpers import get_builder, show_uri
|
||||||
|
|
||||||
|
|
||||||
class Window(Gtk.Window):
|
class Window(Gtk.Window):
|
||||||
|
|
||||||
"""This class is meant to be subclassed by MugshotWindow. It provides
|
"""This class is meant to be subclassed by MugshotWindow. It provides
|
||||||
common functions and some boilerplate."""
|
common functions and some boilerplate."""
|
||||||
__gtype_name__ = "Window"
|
__gtype_name__ = "Window"
|
||||||
|
|
|
@ -54,7 +54,9 @@ def get_media_file(media_file_name):
|
||||||
|
|
||||||
|
|
||||||
class NullHandler(logging.Handler):
|
class NullHandler(logging.Handler):
|
||||||
|
|
||||||
"""Handle NULL"""
|
"""Handle NULL"""
|
||||||
|
|
||||||
def emit(self, record):
|
def emit(self, record):
|
||||||
"""Do not emit anything."""
|
"""Do not emit anything."""
|
||||||
pass
|
pass
|
||||||
|
|
|
@ -20,7 +20,7 @@ __all__ = [
|
||||||
'project_path_not_found',
|
'project_path_not_found',
|
||||||
'get_data_file',
|
'get_data_file',
|
||||||
'get_data_path',
|
'get_data_path',
|
||||||
]
|
]
|
||||||
|
|
||||||
# Where your project will look for your data (for instance, images and ui
|
# Where your project will look for your data (for instance, images and ui
|
||||||
# files). By default, this is ../data, relative your trunk layout
|
# files). By default, this is ../data, relative your trunk layout
|
||||||
|
@ -32,6 +32,7 @@ import os
|
||||||
|
|
||||||
|
|
||||||
class project_path_not_found(Exception):
|
class project_path_not_found(Exception):
|
||||||
|
|
||||||
"""Raised when we can't find the project directory."""
|
"""Raised when we can't find the project directory."""
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -8,7 +8,7 @@ msgid ""
|
||||||
msgstr ""
|
msgstr ""
|
||||||
"Project-Id-Version: PACKAGE VERSION\n"
|
"Project-Id-Version: PACKAGE VERSION\n"
|
||||||
"Report-Msgid-Bugs-To: \n"
|
"Report-Msgid-Bugs-To: \n"
|
||||||
"POT-Creation-Date: 2015-08-29 22:19-0400\n"
|
"POT-Creation-Date: 2015-08-31 22:28-0400\n"
|
||||||
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
|
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
|
||||||
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
|
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
|
||||||
"Language-Team: LANGUAGE <LL@li.org>\n"
|
"Language-Team: LANGUAGE <LL@li.org>\n"
|
||||||
|
@ -61,7 +61,7 @@ msgstr ""
|
||||||
msgid "Browse…"
|
msgid "Browse…"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: ../data/ui/MugshotWindow.ui.h:9 ../mugshot/MugshotWindow.py:588
|
#: ../data/ui/MugshotWindow.ui.h:9 ../mugshot/MugshotWindow.py:589
|
||||||
msgid "Mugshot"
|
msgid "Mugshot"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
|
@ -103,80 +103,80 @@ msgstr ""
|
||||||
|
|
||||||
#. Set the record button to retry, and disable it until the capture
|
#. Set the record button to retry, and disable it until the capture
|
||||||
#. finishes.
|
#. finishes.
|
||||||
#: ../mugshot/CameraMugshotDialog.py:232
|
#: ../mugshot/CameraMugshotDialog.py:237
|
||||||
msgid "Retry"
|
msgid "Retry"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: ../mugshot/MugshotWindow.py:321
|
#: ../mugshot/MugshotWindow.py:322
|
||||||
msgid "Authentication cancelled."
|
msgid "Authentication cancelled."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: ../mugshot/MugshotWindow.py:324
|
#: ../mugshot/MugshotWindow.py:325
|
||||||
msgid "Authentication failed."
|
msgid "Authentication failed."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: ../mugshot/MugshotWindow.py:327
|
#: ../mugshot/MugshotWindow.py:328
|
||||||
msgid "An error occurred when saving changes."
|
msgid "An error occurred when saving changes."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: ../mugshot/MugshotWindow.py:329
|
#: ../mugshot/MugshotWindow.py:330
|
||||||
msgid "User details were not updated."
|
msgid "User details were not updated."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: ../mugshot/MugshotWindow.py:498
|
#: ../mugshot/MugshotWindow.py:499
|
||||||
msgid "Update Pidgin buddy icon?"
|
msgid "Update Pidgin buddy icon?"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: ../mugshot/MugshotWindow.py:499
|
#: ../mugshot/MugshotWindow.py:500
|
||||||
msgid "Would you also like to update your Pidgin buddy icon?"
|
msgid "Would you also like to update your Pidgin buddy icon?"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: ../mugshot/MugshotWindow.py:589
|
#: ../mugshot/MugshotWindow.py:590
|
||||||
msgid "Enter your password to change user details."
|
msgid "Enter your password to change user details."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: ../mugshot/MugshotWindow.py:591
|
#: ../mugshot/MugshotWindow.py:592
|
||||||
msgid ""
|
msgid ""
|
||||||
"This is a security measure to prevent unwanted updates\n"
|
"This is a security measure to prevent unwanted updates\n"
|
||||||
"to your personal information."
|
"to your personal information."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: ../mugshot/MugshotWindow.py:796
|
#: ../mugshot/MugshotWindow.py:797
|
||||||
msgid "Update LibreOffice user details?"
|
msgid "Update LibreOffice user details?"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: ../mugshot/MugshotWindow.py:797
|
#: ../mugshot/MugshotWindow.py:798
|
||||||
msgid "Would you also like to update your user details in LibreOffice?"
|
msgid "Would you also like to update your user details in LibreOffice?"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: ../mugshot_lib/SudoDialog.py:122
|
#: ../mugshot_lib/SudoDialog.py:124
|
||||||
msgid "Password Required"
|
msgid "Password Required"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: ../mugshot_lib/SudoDialog.py:159
|
#: ../mugshot_lib/SudoDialog.py:161
|
||||||
msgid "Incorrect password... try again."
|
msgid "Incorrect password... try again."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: ../mugshot_lib/SudoDialog.py:169
|
#: ../mugshot_lib/SudoDialog.py:171
|
||||||
msgid "Password:"
|
msgid "Password:"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#. Buttons
|
#. Buttons
|
||||||
#: ../mugshot_lib/SudoDialog.py:180
|
#: ../mugshot_lib/SudoDialog.py:182
|
||||||
msgid "Cancel"
|
msgid "Cancel"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: ../mugshot_lib/SudoDialog.py:183
|
#: ../mugshot_lib/SudoDialog.py:185
|
||||||
msgid "OK"
|
msgid "OK"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: ../mugshot_lib/SudoDialog.py:204
|
#: ../mugshot_lib/SudoDialog.py:206
|
||||||
msgid ""
|
msgid ""
|
||||||
"Enter your password to\n"
|
"Enter your password to\n"
|
||||||
"perform administrative tasks."
|
"perform administrative tasks."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: ../mugshot_lib/SudoDialog.py:206
|
#: ../mugshot_lib/SudoDialog.py:208
|
||||||
#, python-format
|
#, python-format
|
||||||
msgid ""
|
msgid ""
|
||||||
"The application '%s' lets you\n"
|
"The application '%s' lets you\n"
|
||||||
|
|
4
setup.py
4
setup.py
|
@ -132,7 +132,9 @@ write_appdata_file("data/appdata/mugshot.appdata.xml.in")
|
||||||
|
|
||||||
|
|
||||||
class InstallAndUpdateDataDirectory(DistUtilsExtra.auto.install_auto):
|
class InstallAndUpdateDataDirectory(DistUtilsExtra.auto.install_auto):
|
||||||
|
|
||||||
"""Command Class to install and update the directory."""
|
"""Command Class to install and update the directory."""
|
||||||
|
|
||||||
def run(self):
|
def run(self):
|
||||||
"""Run the setup commands."""
|
"""Run the setup commands."""
|
||||||
DistUtilsExtra.auto.install_auto.run(self)
|
DistUtilsExtra.auto.install_auto.run(self)
|
||||||
|
@ -197,4 +199,4 @@ DistUtilsExtra.auto.setup(
|
||||||
data_files=[('share/man/man1', ['mugshot.1']),
|
data_files=[('share/man/man1', ['mugshot.1']),
|
||||||
('share/appdata', ['data/appdata/mugshot.appdata.xml'])],
|
('share/appdata', ['data/appdata/mugshot.appdata.xml'])],
|
||||||
cmdclass={'install': InstallAndUpdateDataDirectory}
|
cmdclass={'install': InstallAndUpdateDataDirectory}
|
||||||
)
|
)
|
||||||
|
|
Loading…
Reference in New Issue