Skip to content

Commit

Permalink
bug fix
Browse files Browse the repository at this point in the history
  • Loading branch information
wishrohitv committed May 8, 2024
1 parent 9baf1b9 commit d5320de
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 11 deletions.
8 changes: 4 additions & 4 deletions components/sidemenu/side_menu.kv
Original file line number Diff line number Diff line change
Expand Up @@ -33,15 +33,15 @@
group: "side_tabs"
size_hint: 1, None
height: "50dp"
source: "./assets/navigations/document-files-white.jpg" if self.state == "normal" else "./assets/navigations/document-files-pink.jpg"
source: "assets/navigations/document-files-white.jpg" if self.state == "normal" else "assets/navigations/document-files-pink.jpg"
on_press:
root.left_tab_state(self)
app.on_left_tab_state(self)

LeftTabs:
id: search
name: "search"
source: "./assets/navigations/magnifying-glass-white.jpg" if self.state == "normal" else "./assets/navigations/magnifying-glass-pink.jpg"
source: "assets/navigations/magnifying-glass-white.jpg" if self.state == "normal" else "assets/navigations/magnifying-glass-pink.jpg"
group: "side_tabs"
size_hint: 1, None
height: "50dp"
Expand All @@ -55,13 +55,13 @@
height: f"{Window.height-260}dp" if Window.height - 260 > 8 else 0
LeftTabs:
state: "down"
source: "./assets/navigations/terminal-white.jpg" if self.state == "normal" else "assets/navigations/terminal-pink.jpg"
source: "assets/navigations/terminal-white.jpg" if self.state == "normal" else "assets/navigations/terminal-pink.jpg"
size_hint: 1, None
height: "50dp"
text: "terminal"
on_press: app.open_console_and_close(self)
LeftTabs:
source: "./assets/navigations/info-white.jpg" if self.state == "normal" else "./assets/navigations/info-pink.jpg"
source: "assets/navigations/info-white.jpg" if self.state == "normal" else "assets/navigations/info-pink.jpg"
size_hint: 1, None
height: "50dp"
text: "about"
Expand Down
5 changes: 3 additions & 2 deletions components/widgets/notify.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,9 @@ def __init__(self, **kwargs):
self.add_widget(Label(text="Saved", color="green"))
self.size_hint = (None, None)
self.width = "100dp"
self.height = "60dp"
self.pos_hint = {'center_x': .5, 'center_y': .95}
self.height = "40dp"
self.background_color = (60/255, 48/255, 72/255, 1)
self.pos_hint = {'center_x': .5, 'center_y': .98}
self.overlay_color = (0, 0, 0, 0)

self.open()
Expand Down
9 changes: 7 additions & 2 deletions ide-workspace/app.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,14 @@
#global m
m = 10

def h():
s = 8
print(s)
print(m)

h()
h()
class S:
g = 2
def __init__(self):
print(m, "rohit")
print(g, "rohit")
S()
6 changes: 3 additions & 3 deletions main.py
Original file line number Diff line number Diff line change
Expand Up @@ -252,7 +252,7 @@ def run_code(self):
old_stdout = sys.stdout
new_stdout = io.StringIO()
sys.stdout = new_stdout
exec(code, globals())
exec(code, locals(), globals())
output = new_stdout.getvalue()
sys.stdout = old_stdout
# print(output)
Expand Down Expand Up @@ -287,8 +287,8 @@ def save_active_file_from_header(self):
with open(self.current_tabs_active_file_path, "w") as f:
f.write(self.current_tabs_active_code)

from components.widgets.notify import Notify
obj = Notify()
from components.widgets.notify import Notify
obj = Notify()

def _current_tabs_active_code(self, code):
self.current_tabs_active_code = code
Expand Down

0 comments on commit d5320de

Please sign in to comment.