mirror of
https://github.com/pdxlocations/contact.git
synced 2026-06-22 11:05:08 +02:00
grasping at straws
This commit is contained in:
+23
-23
@@ -49,27 +49,27 @@ def handle_resize(stdscr, firstrun):
|
||||
|
||||
|
||||
else:
|
||||
# Ensure all windows are initialized before using them
|
||||
if entry_win is None:
|
||||
entry_win = curses.newwin(3, width, 0, 0)
|
||||
if channel_win is None:
|
||||
channel_win = curses.newwin(height - 6, channel_width, 3, 0)
|
||||
if messages_win is None:
|
||||
messages_win = curses.newwin(height - 6, messages_width, 3, channel_width)
|
||||
if nodes_win is None:
|
||||
nodes_win = curses.newwin(height - 6, nodes_width, 3, channel_width + messages_width)
|
||||
if function_win is None:
|
||||
function_win = curses.newwin(3, width, height - 3, 0)
|
||||
if packetlog_win is None:
|
||||
packetlog_win = curses.newwin(int(height / 3), messages_width, height - int(height / 3) - 3, channel_width)
|
||||
# # Ensure all windows are initialized before using them
|
||||
# if entry_win is None:
|
||||
# entry_win = curses.newwin(3, width, 0, 0)
|
||||
# if channel_win is None:
|
||||
# channel_win = curses.newwin(height - 6, channel_width, 3, 0)
|
||||
# if messages_win is None:
|
||||
# messages_win = curses.newwin(height - 6, messages_width, 3, channel_width)
|
||||
# if nodes_win is None:
|
||||
# nodes_win = curses.newwin(height - 6, nodes_width, 3, channel_width + messages_width)
|
||||
# if function_win is None:
|
||||
# function_win = curses.newwin(3, width, height - 3, 0)
|
||||
# if packetlog_win is None:
|
||||
# packetlog_win = curses.newwin(int(height / 3), messages_width, height - int(height / 3) - 3, channel_width)
|
||||
|
||||
# Ensure pads are initialized
|
||||
if messages_pad is None:
|
||||
messages_pad = curses.newpad(1,1)
|
||||
if nodes_pad is None:
|
||||
nodes_pad = curses.newpad(1,1)
|
||||
if channel_pad is None:
|
||||
channel_pad = curses.newpad(1,1)
|
||||
# # Ensure pads are initialized
|
||||
# if messages_pad is None:
|
||||
# messages_pad = curses.newpad(1,1)
|
||||
# if nodes_pad is None:
|
||||
# nodes_pad = curses.newpad(1,1)
|
||||
# if channel_pad is None:
|
||||
# channel_pad = curses.newpad(1,1)
|
||||
|
||||
|
||||
for win in [entry_win, channel_win, messages_win, nodes_win, function_win, packetlog_win]:
|
||||
@@ -433,9 +433,9 @@ def draw_messages_window(scroll_to_bottom = False):
|
||||
draw_packetlog_win()
|
||||
|
||||
def draw_node_list():
|
||||
# global nodes_pad
|
||||
# if nodes_pad is None:
|
||||
# nodes_pad = curses.newpad(1, 1)
|
||||
global nodes_pad
|
||||
if nodes_pad is None:
|
||||
nodes_pad = curses.newpad(1, 1)
|
||||
|
||||
try:
|
||||
nodes_pad.erase()
|
||||
|
||||
Reference in New Issue
Block a user