feat: Add tooltip with dictation instructions to Dictate button
Explains double-click vs click-and-hold modes and the tip about typing at insertion point first to set cursor position. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
parent
f063739348
commit
d30013778b
|
|
@ -2078,6 +2078,20 @@ class DiscussionGUI:
|
|||
tag="dictate_btn",
|
||||
width=100
|
||||
)
|
||||
# Add tooltip with usage instructions
|
||||
with dpg.tooltip("dictate_btn"):
|
||||
dpg.add_text("Voice Dictation", color=(200, 200, 255))
|
||||
dpg.add_separator()
|
||||
dpg.add_text("Double-click: Continuous mode")
|
||||
dpg.add_text(" Transcribed text appends to end.", color=(150, 150, 150))
|
||||
dpg.add_text(" Click again to stop.", color=(150, 150, 150))
|
||||
dpg.add_spacer(height=5)
|
||||
dpg.add_text("Click & hold: Walkie-talkie mode")
|
||||
dpg.add_text(" Inserts at last edited position.", color=(150, 150, 150))
|
||||
dpg.add_text(" Release to stop.", color=(150, 150, 150))
|
||||
dpg.add_spacer(height=5)
|
||||
dpg.add_text("Tip: Type at insertion point first", color=(255, 200, 100))
|
||||
dpg.add_text("to set cursor position.", color=(255, 200, 100))
|
||||
# Add item handlers for press-and-hold vs double-click detection
|
||||
with dpg.item_handler_registry(tag="dictate_btn_handlers"):
|
||||
dpg.add_item_activated_handler(callback=self._on_dictate_activated)
|
||||
|
|
|
|||
Loading…
Reference in New Issue