Skip to content

Commit

Permalink
Add/unify Python file headers
Browse files Browse the repository at this point in the history
  • Loading branch information
scotty007 committed Sep 8, 2020
1 parent ae994bf commit 8224632
Show file tree
Hide file tree
Showing 97 changed files with 1,043 additions and 68 deletions.
2 changes: 1 addition & 1 deletion CreateVersionFile.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
#!/usr/bin/env python
# -*- coding: utf-8 -*-

# libavg - Media Playback Engine.
# Copyright (C) 2003-2020 Ulrich von Zadow
#
Expand All @@ -18,7 +19,6 @@
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
#
# Current versions can be found at www.libavg.de
#

# The script generates a header file that contains versioning data for
# the current build.
Expand Down
20 changes: 20 additions & 0 deletions fixcopyright.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,24 @@
#!/usr/bin/env python
# -*- coding: utf-8 -*-

# libavg - Media Playback Engine.
# Copyright (C) 2011-2020 Ulrich von Zadow
#
# This library is free software; you can redistribute it and/or
# modify it under the terms of the GNU Lesser General Public
# License as published by the Free Software Foundation; either
# version 2 of the License, or (at your option) any later version.
#
# This library is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
# Lesser General Public License for more details.
#
# You should have received a copy of the GNU Lesser General Public
# License along with this library; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
#
# Current versions can be found at www.libavg.de

import os
import re
Expand Down
23 changes: 21 additions & 2 deletions python/libavg/__init__.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,24 @@
# libavg is a high-level development platform for media-centric applications.
# https://www.libavg.de
#!/usr/bin/env python
# -*- coding: utf-8 -*-

# libavg - Media Playback Engine.
# Copyright (C) 2003-2020 Ulrich von Zadow
#
# This library is free software; you can redistribute it and/or
# modify it under the terms of the GNU Lesser General Public
# License as published by the Free Software Foundation; either
# version 2 of the License, or (at your option) any later version.
#
# This library is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
# Lesser General Public License for more details.
#
# You should have received a copy of the GNU Lesser General Public
# License along with this library; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
#
# Current versions can be found at www.libavg.de

# Work around libstdc++ Mesa bug
# (https://bugs.launchpad.net/ubuntu/+source/mesa/+bug/259219)
Expand Down
4 changes: 3 additions & 1 deletion python/libavg/app/touchvisualization.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
#!/usr/bin/env python
# -*- coding: utf-8 -*-

# libavg - Media Playback Engine.
# Copyright (C) 2003-2020 Ulrich von Zadow
#
Expand All @@ -16,7 +19,6 @@
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
#
# Current versions can be found at www.libavg.de
#

import os

Expand Down
4 changes: 3 additions & 1 deletion python/libavg/apphelpers.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
#!/usr/bin/env python
# -*- coding: utf-8 -*-

# libavg - Media Playback Engine.
# Copyright (C) 2003-2020 Ulrich von Zadow
#
Expand All @@ -16,7 +19,6 @@
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
#
# Current versions can be found at www.libavg.de
#

import os

Expand Down
3 changes: 2 additions & 1 deletion python/libavg/filter.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
#!/usr/bin/env python
# -*- coding: utf-8 -*-

# libavg - Media Playback Engine.
# Copyright (C) 2003-2020 Ulrich von Zadow
#
Expand All @@ -17,7 +19,6 @@
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
#
# Current versions can be found at www.libavg.de
#

import math

Expand Down
4 changes: 3 additions & 1 deletion python/libavg/geom.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
#!/usr/bin/env python
# -*- coding: utf-8 -*-

# libavg - Media Playback Engine.
# Copyright (C) 2003-2020 Ulrich von Zadow
#
Expand All @@ -16,7 +19,6 @@
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
#
# Current versions can be found at www.libavg.de
#

from libavg import avg

Expand Down
3 changes: 2 additions & 1 deletion python/libavg/gesture.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
#!/usr/bin/env python
# -*- coding: utf-8 -*-

# libavg - Media Playback Engine.
# Copyright (C) 2003-2020 Ulrich von Zadow
#
Expand All @@ -17,7 +19,6 @@
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
#
# Current versions can be found at www.libavg.de
#

from libavg import avg, statemachine, player, filter

Expand Down
3 changes: 3 additions & 0 deletions python/libavg/graph.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
#!/usr/bin/env python
# -*- coding: utf-8 -*-

# libavg - Media Playback Engine.
# Copyright (C) 2003-2020 Ulrich von Zadow
#
Expand Down
3 changes: 3 additions & 0 deletions python/libavg/methodref.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
#!/usr/bin/env python
# -*- coding: utf-8 -*-

# libavg - Media Playback Engine.
# Copyright (C) 2003-2020 Ulrich von Zadow
#
Expand Down
1 change: 1 addition & 0 deletions python/libavg/mtemu.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
#
# Current versions can be found at www.libavg.de
#
# Original author of this file is Sebastian Maulbeck
# <sm (at) archimedes-solutions (dot) de>

Expand Down
3 changes: 1 addition & 2 deletions python/libavg/parsecamargs.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/usr/bin/env python
# -*- coding: utf-8 -*-
#

# libavg - Media Playback Engine.
# Copyright (C) 2003-2020 Ulrich von Zadow
#
Expand All @@ -19,7 +19,6 @@
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
#
# Current versions can be found at www.libavg.de
#

from libavg import avg

Expand Down
1 change: 0 additions & 1 deletion python/libavg/persist.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@
#
# Original author of this file is OXullo Interecans <x at brainrapers dot org>


import os
import time
import cPickle as pickle
Expand Down
4 changes: 3 additions & 1 deletion python/libavg/statemachine.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
#!/usr/bin/env python
# -*- coding: utf-8 -*-

# libavg - Media Playback Engine.
# Copyright (C) 2003-2020 Ulrich von Zadow
#
Expand All @@ -16,7 +19,6 @@
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
#
# Current versions can be found at www.libavg.de
#

from methodref import methodref

Expand Down
2 changes: 1 addition & 1 deletion python/libavg/testapp.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
#!/usr/bin/env python
# -*- coding: utf-8 -*-

# libavg - Media Playback Engine.
# Copyright (C) 2003-2020 Ulrich von Zadow
#
Expand All @@ -18,7 +19,6 @@
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
#
# Current versions can be found at www.libavg.de
#

import unittest

Expand Down
4 changes: 2 additions & 2 deletions python/libavg/testcase.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
#!/usr/bin/python
#!/usr/bin/env python
# -*- coding: utf-8 -*-

# libavg - Media Playback Engine.
# Copyright (C) 2003-2020 Ulrich von Zadow
#
Expand All @@ -18,7 +19,6 @@
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
#
# Current versions can be found at www.libavg.de
#

import unittest

Expand Down
3 changes: 1 addition & 2 deletions python/libavg/textarea.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/usr/bin/env python
# -*- coding: utf-8 -*-
#

# libavg - Media Playback Engine.
# Copyright (C) 2003-2020 Ulrich von Zadow
#
Expand All @@ -21,7 +21,6 @@
# Current versions can be found at www.libavg.de
#
# Original author of this module is Marco Fagiolini <mfx at archi-me-des dot de>
#

KEYCODE_TAB = 9
KEYCODE_LINEFEED = 13
Expand Down
4 changes: 3 additions & 1 deletion python/libavg/utils.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
#!/usr/bin/env python
# -*- coding: utf-8 -*-

# libavg - Media Playback Engine.
# Copyright (C) 2003-2020 Ulrich von Zadow
#
Expand All @@ -18,7 +21,6 @@
# Current versions can be found at www.libavg.de
#
# Original author of this file is Martin Heistermann <mh at sponc dot de>
#

import os

Expand Down
22 changes: 22 additions & 0 deletions python/libavg/widget/__init__.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,25 @@
#!/usr/bin/env python
# -*- coding: utf-8 -*-

# libavg - Media Playback Engine.
# Copyright (C) 2003-2020 Ulrich von Zadow
#
# This library is free software; you can redistribute it and/or
# modify it under the terms of the GNU Lesser General Public
# License as published by the Free Software Foundation; either
# version 2 of the License, or (at your option) any later version.
#
# This library is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
# Lesser General Public License for more details.
#
# You should have received a copy of the GNU Lesser General Public
# License along with this library; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
#
# Current versions can be found at www.libavg.de

from base import SwitchNode, HStretchNode, VStretchNode, HVStretchNode, Orientation
from button import Button, BmpButton, TextButton, ToggleButton, BmpToggleButton, CheckBox
from keyboard import Keyboard
Expand Down
2 changes: 2 additions & 0 deletions python/libavg/widget/base.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
#!/usr/bin/env python
# -*- coding: utf-8 -*-

# libavg - Media Playback Engine.
# Copyright (C) 2003-2020 Ulrich von Zadow
#
Expand Down
2 changes: 2 additions & 0 deletions python/libavg/widget/button.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
#!/usr/bin/env python
# -*- coding: utf-8 -*-

# libavg - Media Playback Engine.
# Copyright (C) 2003-2020 Ulrich von Zadow
#
Expand Down
3 changes: 1 addition & 2 deletions python/libavg/widget/keyboard.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/usr/bin/env python
# -*- coding: utf-8 -*-
#

# libavg - Media Playback Engine.
# Copyright (C) 2003-2020 Ulrich von Zadow
#
Expand All @@ -21,7 +21,6 @@
# Current versions can be found at www.libavg.de
#
# Original author of this module: Thomas Schott <scotty at c-base dot org>
#

import os.path

Expand Down
2 changes: 2 additions & 0 deletions python/libavg/widget/mediacontrol.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
#!/usr/bin/env python
# -*- coding: utf-8 -*-

# libavg - Media Playback Engine.
# Copyright (C) 2003-2020 Ulrich von Zadow
#
Expand Down
3 changes: 2 additions & 1 deletion python/libavg/widget/scrollarea.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
#!/usr/bin/env python
# -*- coding: utf-8 -*-

# libavg - Media Playback Engine.
# Copyright (C) 2003-2020 Ulrich von Zadow
#
Expand All @@ -17,7 +19,6 @@
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
#
# Current versions can be found at www.libavg.de
#

from libavg import avg, gesture
from . import slider
Expand Down
2 changes: 2 additions & 0 deletions python/libavg/widget/skin.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
#!/usr/bin/env python
# -*- coding: utf-8 -*-

# libavg - Media Playback Engine.
# Copyright (C) 2003-2020 Ulrich von Zadow
#
Expand Down
2 changes: 2 additions & 0 deletions python/libavg/widget/slider.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
#!/usr/bin/env python
# -*- coding: utf-8 -*-

# libavg - Media Playback Engine.
# Copyright (C) 2003-2020 Ulrich von Zadow
#
Expand Down
19 changes: 19 additions & 0 deletions src/samples/abort_gestures.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,25 @@
#!/usr/bin/env python
# -*- coding: utf-8 -*-

# libavg - Media Playback Engine.
# Copyright (C) 2012-2020 Ulrich von Zadow
#
# This library is free software; you can redistribute it and/or
# modify it under the terms of the GNU Lesser General Public
# License as published by the Free Software Foundation; either
# version 2 of the License, or (at your option) any later version.
#
# This library is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
# Lesser General Public License for more details.
#
# You should have received a copy of the GNU Lesser General Public
# License along with this library; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
#
# Current versions can be found at www.libavg.de

from libavg import avg, gesture, app

import gestures
Expand Down

0 comments on commit 8224632

Please sign in to comment.