From ff45d8e1cde20a87eaf6f0443ad0bce1b2e697ae Mon Sep 17 00:00:00 2001 From: skomoroh Date: Sat, 9 Feb 2008 12:34:25 +0000 Subject: [PATCH] + added pysol.desktop git-svn-id: file:///home/shlomif/Backup/svn-dumps/PySolFC/svnsync-repos/pysolfc/PySolFC/trunk@216 efabe8c0-fbe8-4139-b769-b5e6d273206e --- MANIFEST.in | 1 + data/themes/clearlooks/clearlooks8.4.tcl | 3 ++- pysollib/tile/statusbar.py | 2 +- setup.py | 4 ++++ 4 files changed, 8 insertions(+), 2 deletions(-) diff --git a/MANIFEST.in b/MANIFEST.in index 871b619b..2e65eca1 100644 --- a/MANIFEST.in +++ b/MANIFEST.in @@ -12,6 +12,7 @@ include pysollib/tk/*.py pysollib/tile/*.py pysollib/pysolgtk/*.py include pysollib/games/*.py pysollib/games/special/*.py include pysollib/games/ultra/*.py pysollib/games/mahjongg/*.py include data/tcl/*.tcl +include data/pysol.desktop include data/pysolfc.glade graft data/themes include scripts/build.bat scripts/create_iss.py scripts/mahjongg_utils.py diff --git a/data/themes/clearlooks/clearlooks8.4.tcl b/data/themes/clearlooks/clearlooks8.4.tcl index f130682e..ffce6138 100644 --- a/data/themes/clearlooks/clearlooks8.4.tcl +++ b/data/themes/clearlooks/clearlooks8.4.tcl @@ -77,7 +77,8 @@ namespace eval tile::theme::clearlooks { ## Buttons. # - style configure TButton -padding {10 0} + #style configure TButton -padding {10 0} -anchor center + style configure TButton -padding {5 5} -anchor center -width -9 style layout TButton { Button.button -children { Button.focus -children { diff --git a/pysollib/tile/statusbar.py b/pysollib/tile/statusbar.py index 48f08d2b..f1a19cfa 100644 --- a/pysollib/tile/statusbar.py +++ b/pysollib/tile/statusbar.py @@ -87,7 +87,7 @@ class MfxStatusbar: self._label_column += 1 setattr(self, name + '_frame', frame) self._widgets.append(frame) - label = Tile.Label(frame, width=width) + label = Tile.Label(frame, width=width, anchor='center') label.pack(expand=True, fill='both') setattr(self, name + '_label', label) self._widgets.append(label) diff --git a/setup.py b/setup.py index 2a3a49b2..e2eb8763 100644 --- a/setup.py +++ b/setup.py @@ -41,10 +41,14 @@ for d in ddirs: if os.name == 'posix': data_files.append(('share/pixmaps', ['data/pysol.xbm', 'data/pysol.xpm'])) + data_files.append(('share/icons', + ['data/images/misc/pysol01.png', + 'data/images/misc/pysol02.png',])) for l in ('ru', 'ru_RU'): data_files.append(('share/locale/%s/LC_MESSAGES' % l, ['locale/%s/LC_MESSAGES/pysol.mo' % l])) data_files.append((data_dir, ['data/pysolfc.glade'])) + data_files.append(('share/applications', ['data/pysol.desktop'])) ##from pprint import pprint; pprint(data_files) ##import sys; sys.exit()