wrapped import in order to check for the installation of packages
This commit is contained in:
parent
4529d87b04
commit
eb384e3018
1 changed files with 11 additions and 5 deletions
|
@ -1,9 +1,15 @@
|
|||
import sys
|
||||
from textual.color import Color
|
||||
from textual import events
|
||||
from textual.app import App, ComposeResult
|
||||
from textual.containers import Container, VerticalScroll
|
||||
from textual.widgets import Footer, Header, Static
|
||||
|
||||
|
||||
try:
|
||||
from textual.color import Color
|
||||
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):
|
||||
if ip > 1 and ip + 2 < len(lines):
|
||||
|
|
Loading…
Reference in a new issue