Skip to content

Commit

Permalink
Added dave logo to window, asset and readme
Browse files Browse the repository at this point in the history
  • Loading branch information
maxmarsc committed Oct 16, 2024
1 parent 77250e3 commit a2df35c
Show file tree
Hide file tree
Showing 5 changed files with 21 additions and 4 deletions.
3 changes: 3 additions & 0 deletions .pictures/dave_logo_long_v6.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions .pictures/dave_logo_v6.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 4 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
# DAVE - Debugger Audio Visualization Extension
# Debugger Audio Visualization Extension
![logo](.pictures/dave_logo_long_v6.png )

DAVE is a GDB & LLDB extension which provide commands to visualize audio data
directly from your buffers/classes. No need to recompile your code and/or instrument
it with nasty macros or fancy libs, just start your debugger !

<p align="center">
<b> DAVE GUI </b>
<b> The DAVE GUI </b>
</p>
<p align="center">
<img src=".pictures/phase.png">
Expand Down
11 changes: 10 additions & 1 deletion dave/client/gui.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
from enum import Enum
from tkinter import StringVar, ttk, filedialog, messagebox
from typing import Callable, Dict, List, Tuple
from pathlib import Path


import numpy as np
Expand Down Expand Up @@ -38,6 +39,13 @@ def validate_samplerate(self, value) -> bool:
return value > 0


def load_icon() -> tk.PhotoImage:
import dave

png_icon = Path(dave.__file__).parent.parent / ".pictures/dave_logo_v6.png"
return tk.PhotoImage(file=png_icon)


class ContainerSettingsFrame(ctk.CTkFrame):
"""
Holds all the settings of a container (not the actions buttons)
Expand Down Expand Up @@ -691,7 +699,7 @@ def __init__(
self.__global_settings_frame.pack(side=tk.TOP, fill=tk.X, pady=5)
self.__separator = ctk.CTkFrame(
self.__master,
fg_color=ctk.ThemeManager.theme["CTkLabel"]["text_color"],
fg_color=ctk.ThemeManager.theme["CTkFrame"]["top_fg_color"],
width=100,
height=6,
corner_radius=3,
Expand Down Expand Up @@ -851,6 +859,7 @@ def __init__(

ctk.set_appearance_mode(self.__global_settings.appearance)
self.__window = ctk.CTk()
self.__window.tk.call("wm", "iconphoto", self.__window._w, load_icon())
self.__window.title("Dave")
self.__window.minsize(900, 600)
self.__window.protocol("WM_DELETE_WINDOW", self.on_closing)
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
"assets/.lldbinit",
"assets/dave",
],
":": ["LICENSE"],
":": ["LICENSE", ".pictures/dave_logo_v6.png"],
},
include_package_data=True,
)

0 comments on commit a2df35c

Please sign in to comment.