More info on gtk in error report & remove duplicate PYTHON line
svn: r14004
This commit is contained in:
parent
bfa7687058
commit
08c8edb43d
@ -2,10 +2,12 @@ from gettext import gettext as _
|
|||||||
import Assistant
|
import Assistant
|
||||||
import const
|
import const
|
||||||
import gtk
|
import gtk
|
||||||
|
import pygtk
|
||||||
|
import gobject
|
||||||
|
import cairo
|
||||||
import sys, os,bsddb
|
import sys, os,bsddb
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
class ErrorReportAssistant(object):
|
class ErrorReportAssistant(object):
|
||||||
|
|
||||||
def __init__(self,error_detail,rotate_handler, ownthread=False):
|
def __init__(self,error_detail,rotate_handler, ownthread=False):
|
||||||
@ -111,18 +113,27 @@ class ErrorReportAssistant(object):
|
|||||||
"Gramps version: %s \n"\
|
"Gramps version: %s \n"\
|
||||||
"LANG: %s\n"\
|
"LANG: %s\n"\
|
||||||
"OS: %s\n"\
|
"OS: %s\n"\
|
||||||
"Distribution: %s\n"\
|
"Distribution: %s\n\n"\
|
||||||
|
"GTK version : %s\n"\
|
||||||
|
"pygtk version : %s\n"\
|
||||||
|
"gobject version: %s\n"\
|
||||||
|
"cairo version : %s"\
|
||||||
% (str(sys.version).replace('\n',''),
|
% (str(sys.version).replace('\n',''),
|
||||||
str(bsddb.__version__),
|
str(bsddb.__version__),
|
||||||
str(const.VERSION),
|
str(const.VERSION),
|
||||||
os.environ.get('LANG',''),
|
os.environ.get('LANG',''),
|
||||||
operatingsystem,
|
operatingsystem,
|
||||||
distribution)
|
distribution,
|
||||||
|
gtk.gtk_version,
|
||||||
|
gtk.pygtk_version,
|
||||||
|
gobject.pygobject_version,
|
||||||
|
cairo.version_info)
|
||||||
|
|
||||||
def _reset_error_details_text_buffer(self, obj=None):
|
def _reset_error_details_text_buffer(self, obj=None):
|
||||||
self._error_details_text_buffer.set_text(
|
self._error_details_text_buffer.set_text(
|
||||||
"\n".join(self._rotate_handler.get_formatted_log(self._error_detail.get_record())) +
|
"\n".join(self._rotate_handler.get_formatted_log(
|
||||||
self._error_detail.get_formatted_log())
|
self._error_detail.get_record()))
|
||||||
|
+ self._error_detail.get_formatted_log())
|
||||||
|
|
||||||
def _clear_error_details_text_buffer(self, obj=None):
|
def _clear_error_details_text_buffer(self, obj=None):
|
||||||
self._error_details_text_buffer.delete(
|
self._error_details_text_buffer.delete(
|
||||||
|
@ -89,8 +89,6 @@ except:
|
|||||||
|
|
||||||
args = sys.argv
|
args = sys.argv
|
||||||
|
|
||||||
MIN_PYTHON_VERSION = (2, 5, 0, '', 0)
|
|
||||||
|
|
||||||
def setup_logging():
|
def setup_logging():
|
||||||
"""Setup basic logging support."""
|
"""Setup basic logging support."""
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user