wrapped import in order to check for the installation of packages

This commit is contained in:
Raphaël LACROIX 2023-05-31 22:00:18 +02:00
parent 4529d87b04
commit eb384e3018

View file

@ -1,9 +1,15 @@
import sys import sys
from textual.color import Color
from textual import events
from textual.app import App, ComposeResult try:
from textual.containers import Container, VerticalScroll from textual.color import Color
from textual.widgets import Footer, Header, Static from textual import events
from textual.app import App, ComposeResult
from textual.containers import Container, VerticalScroll
from textual.widgets import Footer, Header, Static
except:
print("please install textual and rich !")
def getLinesToShow(ip, lines): def getLinesToShow(ip, lines):
if ip > 1 and ip + 2 < len(lines): if ip > 1 and ip + 2 < len(lines):