Skip to content

Commit

Permalink
Remove unnecessary instances
Browse files Browse the repository at this point in the history
  • Loading branch information
tomlin7 committed Jul 4, 2023
1 parent 824e918 commit acc99e3
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 14 deletions.
2 changes: 0 additions & 2 deletions biscuit/core/components/floating/notifications/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,6 @@ class Notifications(Toplevel):
def __init__(self, base):
super().__init__(base)
self.config(bg=self.base.theme.border, padx=1, pady=1)

#self.attributes("-toolwindow", True)
self.overrideredirect(True)

self.offset = 10
Expand Down
23 changes: 11 additions & 12 deletions biscuit/core/components/views/panel/terminal/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,30 +4,29 @@
from threading import Thread
from tkinter.constants import *

from ....utils import Scrollbar
from ..panelview import PanelView
from .text import TerminalText
from .....utils.sysinfo import SysInfo

from .text import TerminalText
from ..panelview import PanelView
from core.components.utils import Scrollbar, Label



class Terminal(PanelView):
def __init__(self, master, *args, **kwargs):
super().__init__(master, *args, **kwargs)
self.__buttons__ = (('add',),('trash',))
self.sysinf = SysInfo(master)
print(self.sysinf.os)
self.terminal_command=""
if self.sysinf.os == "Linux":
self.terminal_command = "/bin/bash"
elif self.sysinf.os == "windows":
self.terminal_command = "cmd"
print(f"terminal command:{self.terminal_command}")

self.grid_columnconfigure(0, weight=1)
self.grid_rowconfigure(0, weight=1)

if self.base.sysinfo.os == "Linux":
self.terminal_command = "/bin/bash"
elif self.base.sysinfo.os == "Windows":
self.terminal_command = "cmd"
else:
Label(self, text="No terminals detected for the host os, report an issue otherwise.").pack()
return

self.terminal = TerminalText(self, relief=FLAT, padx=10, pady=10, font=("Consolas", 11))
self.terminal.grid(row=0, column=0, sticky=NSEW)
self.terminal.bind("<Return>", self.enter)
Expand Down

0 comments on commit acc99e3

Please sign in to comment.