Subversion Repositories basico

Rev

Rev 243 | Rev 276 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 243 Rev 246
Line 1... Line 1...
1
#!/usr/bin/python
1
#!/usr/bin/python
-
 
2
"""
2
# -*- coding: utf-8 -*-
3
# -*- coding: utf-8 -*-
3
# File: about.py
-
 
-
 
4
# File: wdg_about.py
4
# Author: Tomás Vírseda
5
# Author: Tomás Vírseda
5
# License: GPL v3
6
# License: GPL v3
6
# Description: About Widget
7
# Description: About Widget
-
 
8
"""
7
9
8
from os.path import sep as SEP
-
 
9
from cgi import escape
-
 
-
 
10
from html import escape
10
import gi
11
import gi
11
gi.require_version('Gtk', '3.0')
-
 
12
gi.require_version('Gdk', '3.0')
-
 
13
from gi.repository import Gtk
12
from gi.repository import Gtk
14
from gi.repository import Gdk
-
 
15
from gi.repository import Pango
13
from gi.repository import Pango
-
 
14
from basico.core.mod_env import APP
-
 
15
-
 
16
gi.require_version('Gtk', '3.0')
-
 
17
gi.require_version('Gdk', '3.0')
16
18
17
from basico.core.mod_env import ROOT, USER_DIR, APP, LPATH, GPATH, FILE
-
 
18
from basico.core.mod_srv import Service
-
 
19
19
20
class About(Gtk.ScrolledWindow):
20
class About(Gtk.ScrolledWindow):
-
 
21
    """
-
 
22
    About class
-
 
23
    """
21
    def __init__(self):
24
    def __init__(self):
22
        Gtk.ScrolledWindow.__init__(self)
25
        Gtk.ScrolledWindow.__init__(self)
23
        self.set_policy(Gtk.PolicyType.AUTOMATIC, Gtk.PolicyType.AUTOMATIC)
26
        self.set_policy(Gtk.PolicyType.AUTOMATIC, Gtk.PolicyType.AUTOMATIC)
24
        self.set_hexpand(True)
27
        self.set_hexpand(True)
25
        self.set_vexpand(True)
28
        self.set_vexpand(True)