Skip to content

Commit 60e1bd8

Browse files
committed
word wrap for command body and comment; GUI improvements
1 parent fa23f04 commit 60e1bd8

5 files changed

Lines changed: 19 additions & 7 deletions

File tree

CHANGELOG.md

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,15 @@
1+
## Version 1.0.0
2+
### ADDED
3+
* Add GitHub action for Linux build.
4+
5+
### CHANGED
6+
* GUI improvements for maintaining similar layout across platforms.
7+
* Refactor main window code to make them more readable and maintainable.
8+
* CommentBox and CommandBodyBox no longer cut off words when starting a new line.
9+
10+
### DEBUGGED
11+
12+
113
## Version 0.9.0 (Beta)
214

315
### ADDED
@@ -8,7 +20,7 @@
820
### CHANGED
921
* GUI improvements.
1022
* Reset man page to empty for each load.
11-
* Refactor main window code to make them more readable and maintainable.
23+
1224

1325
### DEBUGGED
1426
* Fix command heightening unable to highlight `−` (a way to represent `-` in html).

cmdcompass/gui/commandbodybox.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ def __init__(self, master, main_window, **kwargs):
99
self.grid_rowconfigure(0, weight=1) # Make the textbox row expandable
1010
self.grid_columnconfigure(0, weight=1) # Make the textbox column expandable
1111

12-
self.command_textbox = ctk.CTkTextbox(self, height=100)
12+
self.command_textbox = ctk.CTkTextbox(self, height=100, wrap='word')
1313
self.command_textbox.grid(row=0, column=0, padx=10, pady=10, sticky="nsew")
1414

1515
# Copy button

cmdcompass/gui/commandbox.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@
22
import tkinter.font as tkFont
33
import platform
44

5-
COMMAND_LABLE_WIDTH = 200
6-
if platform.system() == "Windows":
7-
COMMAND_LABLE_WIDTH = 210
5+
COMMAND_LABLE_WIDTH = 210
6+
if platform.system() == "Darwin":
7+
COMMAND_LABLE_WIDTH = 195
88

99
class TagBox(ctk.CTkFrame):
1010
def __init__(self, master, tags, command, main_window,**kwargs):

cmdcompass/gui/commentbox.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ def __init__(self, master, main_window, **kwargs):
88
self.grid_rowconfigure(0, weight=1)
99
self.grid_columnconfigure(0, weight=1)
1010

11-
self.comment_textbox = ctk.CTkTextbox(self, height=350)
11+
self.comment_textbox = ctk.CTkTextbox(self, height=350, wrap='word')
1212
self.comment_textbox.grid(row=0, column=0, padx=0, pady=0, sticky="nsew")
1313

1414
self.save_button = ctk.CTkButton(self, image=load_ctk_image("save.png"), text="", command=self.save_comment, width=20)

cmdcompass/gui/main_window.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717

1818
# Configuration Constants
1919
DEFAULT_BUTTON_COLOR = "blue"
20-
COMMAND_LIST_FRAME_WIDTH = 230 if platform.system() == "Windows" else 240
20+
COMMAND_LIST_FRAME_WIDTH = 245 if platform.system() == "Darwin" else 230
2121

2222
class GUIConfig:
2323
WINDOW_TITLE = "cmdCompass"

0 commit comments

Comments
 (0)