Skip to content

Commit c518a95

Browse files
authored
Version 10.1.0
Signed-off-by: mctinker <mikrubin@gmail.com>
1 parent 2d8771e commit c518a95

8 files changed

Lines changed: 595 additions & 1884 deletions

File tree

maptasker/src/acmerge.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
# 1- Run the new version of Tasker and invoke the WebUI in the new Tasker interface.
1010
# 2- Access the WebUI via browser on desktop: https://192.168.0.xx:8745
1111
# 3- Run 'Get Args' to list all of the Task action codes.
12-
# 4- Copy the results into /maptasker/asseets/json/task_all_actions.json
12+
# 4- Copy the results into /maptasker/assets/json/task_all_actions.json
1313
# 5- Modify proginit 'build_it_all = True
1414
# 6- Run with debug on to create 'newdict.py'. Look for errors and missing codes.
1515
# 7- Replace 'actionc.py' with '/assets/json/arg_dict.py' contents.

maptasker/src/actionc.py

Lines changed: 555 additions & 1857 deletions
Large diffs are not rendered by default.

maptasker/src/aiutils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -284,7 +284,7 @@ def get_llama_models() -> list:
284284
"gwen3-coder",
285285
"qwen3-coder-next",
286286
"qwen3-next",
287-
"qwen3.5",
287+
"qwen3.5:0.8b",
288288
"starcoder2:latest",
289289
"tinyllama",
290290
]

maptasker/src/guiwins.py

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -397,9 +397,10 @@ def __init__(
397397
self.protocol("WM_DELETE_WINDOW", lambda: on_closing(self))
398398

399399
# Display the title.
400-
self.title(
401-
f"{title} - Drag window to desired position and rerun the {title} command.",
402-
)
400+
# 1. Determine which command to reference
401+
cmd = "Map" if "Map" in title else "Diagram"
402+
translated_title = translate_string(f"Drag window to desired position and rerun the {cmd} command.")
403+
self.title(f"{title} - {translated_title}")
403404

404405

405406
# Display a Text structure: Used for 'Map', 'Diagram' and 'Tree' views.
@@ -612,7 +613,9 @@ def output_list(self, the_data: list) -> None:
612613
else (
613614
f"{i + 1}{line}\n"
614615
if debug_mode
615-
else f"{line[:max_length]}{trunncated}" if len(line) > max_length else f"{line}\n"
616+
else f"{line[:max_length]}{trunncated}"
617+
if len(line) > max_length
618+
else f"{line}\n"
616619
)
617620
)
618621
for i, line in enumerate(the_data)
@@ -773,9 +776,6 @@ def add_view_widgets(self, title: str) -> None:
773776
display_only_event,
774777
) = event_assignments[title]()
775778

776-
# Make sure not to assign a weight so that the buttons stack-up next to each other and respect the previous one.
777-
self.grid_columnconfigure(0, weight=0)
778-
779779
# Add label
780780
drag_msg = translate_string(f"Drag window to desired position and rerun the {title} command.")
781781
self.text_message_label = add_label(

maptasker/src/guiwins2.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -293,7 +293,7 @@ def _enter(self, event: object) -> None:
293293
destroy_hover_tooltip(self.hover_tooltip)
294294
if tag.startswith("hyper-") and self.links:
295295
link = self.links[tag]
296-
if link[0] in tasker_object:
296+
if link and link[0] in tasker_object:
297297
# Add a hover text to the link entered of the name of the link.
298298
label = tk.Label(
299299
event.widget.master,

maptasker/src/proclist.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,9 @@ def add_dictionary_and_twisty(
112112

113113
if "&#45;&#45;Task:" in list_type:
114114
temp_item, temp_list = handle_task(list_type, the_item, blank)
115+
if PrimeItems.program_arguments["directory"]:
116+
task_name = PrimeItems.tasker_root_elements["all_tasks"][the_item]["name"]
117+
add_directory_item("tasks", task_name)
115118
elif PrimeItems.program_arguments["directory"]:
116119
handle_directory(list_type, the_item, the_task)
117120
elif "Task:" in list_type:
@@ -213,6 +216,7 @@ def add_task_hyperlink(task_name: str, display_name: bool, blank: str) -> None:
213216
"""
214217
hyperlink_name = task_name.replace(" ", "_")
215218
name = f"{blank * 8}{task_name}" if display_name else ""
219+
# Add hyperlink html (<a id="tasks_Task_Name"><br>Task Name</a>) to the output
216220
PrimeItems.output_lines.add_line_to_output(
217221
2,
218222
f'<a id="tasks_{hyperlink_name}"><br>{name}</a>',

maptasker/src/sysconst.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
# Global constants
1919
UNNAMED_ITEM = "(Unnamed)"
2020

21-
VERSION = "10.0.8"
21+
VERSION = "10.1.0"
2222
MY_VERSION = f"MapTasker version {VERSION}"
2323

2424
MY_LICENSE = "MIT License"
@@ -259,7 +259,10 @@ class FormatLine(Enum):
259259
NOW_TIME = datetime.now() # noqa: DTZ005
260260

261261
OPENAI_MODELS = [
262-
"gpt-5.2",
262+
"gpt-5.4",
263+
"gpt-5.3-Codex",
264+
"gpt-5.3",
265+
"2",
263266
"gpt-5.2-pro",
264267
"gpt-5.1",
265268
"gpt-5",
@@ -295,6 +298,7 @@ class FormatLine(Enum):
295298
"phi3",
296299
"phi4-mini",
297300
"qwen3:1.7b",
301+
"qwen3.5:0.8b",
298302
"tinyllama",
299303
]
300304
ANTHROPIC_MODELS = [

maptasker/src/userintr.py

Lines changed: 20 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -2579,26 +2579,31 @@ def font_event(self, font_selected: str) -> None:
25792579
None: No value is returned
25802580
Processing Logic:
25812581
- Sets the internal font attribute to the selected font
2582-
- Destroys any existing font label to update it
2583-
- Creates a new label displaying the selected font
2584-
- Places the label in the GUI
2582+
- Creates or updates the font label.
25852583
- Displays a message box confirming the font change
25862584
"""
25872585
the_view = self.parent
25882586
the_view.font = font_selected
2589-
with contextlib.suppress(Exception):
2590-
the_view.font_out_label.destroy()
2591-
text = translate_string("Monospaced Font To Use")
2592-
the_view.font_out_label = customtkinter.CTkLabel(
2593-
master=the_view,
2594-
text=f"{text}: {font_selected}",
2595-
anchor="sw",
2596-
font=(font_selected, 14),
2597-
)
2598-
the_view.font_out_label.grid(row=6, column=1, padx=10, pady=10, sticky="nw")
2587+
2588+
# Prepare translated text
2589+
font_use_text = translate_string("Monospaced Font To Use")
2590+
label_text = f"{font_use_text}: {font_selected}"
2591+
2592+
# Update or create the label to avoid destroying/recreating it
2593+
if hasattr(the_view, "font_out_label") and the_view.font_out_label.winfo_exists():
2594+
the_view.font_out_label.configure(text=label_text, font=(font_selected, 14))
2595+
else:
2596+
the_view.font_out_label = customtkinter.CTkLabel(
2597+
master=the_view,
2598+
text=label_text,
2599+
anchor="sw",
2600+
font=(font_selected, 14),
2601+
)
2602+
the_view.font_out_label.grid(row=6, column=1, padx=10, pady=10, sticky="nw")
2603+
25992604
the_view.font_optionmenu.set(font_selected)
2600-
text = translate_string("Font To Use set to")
2601-
the_view.display_message_box(f"{text} {font_selected}", "Green")
2605+
set_to_text = translate_string("Font To Use set to")
2606+
the_view.display_message_box(f"{set_to_text} {font_selected}", "Green")
26022607

26032608
# Process the Display Detail Level selection
26042609
def detail_selected_event(self, display_detail: str) -> None:

0 commit comments

Comments
 (0)