Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/CristianEdit/Globales.py
blob: 2575a0302f85831225f9968bd77b23d26fe62886 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
#!/usr/bin/env python
# -*- coding: utf-8 -*-

#   Globales.py por:
#   Cristian García <cristian99garcia@gmail.com>

from gi.repository import Gtk
from gi.repository import GtkSource

BIENVENIDA = '''\n\nTerminal creada en python,
por Cristian García <cristian99garcia@gmail.com>'''

lenguaje_manager = GtkSource.LanguageManager()
lenguajes = lenguaje_manager.get_language_ids()

lenguajes.insert(0, 'Texto Plano')

estilo_manager = GtkSource.StyleSchemeManager()
estilos = estilo_manager.get_scheme_ids()


def get_clasico():
    """Devuelve la posisión de classic en el combo"""

    cuenta = 0
    clasico = 0

    for estilo in estilos:
        if estilo == 'classic':
            clasico = cuenta

        cuenta += 1

    return clasico