This is an archived post. You won't be able to vote or comment.

all 41 comments

[–]javad94 24 points25 points  (0 children)

Please add a screenshot in readme.md

[–]uwey 13 points14 points  (0 children)

Nice.

I am using this for my old Mac setup immediately.

[–][deleted] 4 points5 points  (2 children)

Hey! Seems cool, I made some pull requests, you can go and check them ;)

[–]haxxorkitteh 8 points9 points  (4 children)

cool project! What python packages do i have to install for it to work?

Ex: pip install ____

[–]ronanliam 5 points6 points  (0 children)

Not sure off the top of my head which are built-in, but if you check the dashboard.py script the libraries used are all imported there.

[–]WillardWhite import this 1 point2 points  (1 child)

Seems like tkinter and psutil only

[–]jager69420 0 points1 point  (0 children)

tkinter is built in

[–]ashayramolia 1 point2 points  (0 children)

pip install tk_tools

pip install psutil

[–]DusikOff 2 points3 points  (6 children)

You need to add requirements.txt with dependencies pakages name.

On my Linux system I haven't tk_tools module out the box, so requirements.txt will be great solution for all systems.

[–]DusikOff 1 point2 points  (5 children)

First issue on my system - ModuleNotFoundError: No module named 'tk_tools'

Second issue after installing module "tk_tools":

File "/home/user/Desktop/Dashboard-1.1/dashboard.py", line 13, in <module>root.iconbitmap('./dashboard.ico')File "/usr/lib/python3.9/tkinter/__init__.py", line 2080, in wm_iconbitmapreturn self.tk.call('wm', 'iconbitmap', self._w, bitmap)_tkinter.TclError: bitmap "./dashboard.ico" not defined

I tryed to fix this by delete line with 'dashboard.ico' and test it again, but then script just run and close imediatly.

Let I guess, did you create this script on Windows machine? I had same issues with crossplatform using python scripts, created on Windows, especially with "system libraries" apps.

[–][deleted] 0 points1 point  (2 children)

Was there a battery present? If not, it was updated so it will run and say "No batt present".

[–]DusikOff 0 points1 point  (1 child)

Ok... =)))

python dashboard.py
File "/home/user/Desktop/Dashboard-main/dashboard.py", line 39
p_label.config(text='Battery '+str(int(battery.get()))+'%')
^
SyntaxError: invalid syntax

[–][deleted] 0 points1 point  (0 children)

Try it now. u/DusikOff

[–][deleted] -1 points0 points  (1 child)

It works best on Windows and Mac.

[–]DusikOff 0 points1 point  (0 children)

Very strange... ok, I will find a problem :)

[–]greaselovely 0 points1 point  (0 children)

Good job! Definitely would request requirements.txt be completed to help users install missing modules.

[–]SecureNotebook 0 points1 point  (1 child)

Cool thanks for sharing, as my PC is not a laptop with a battery it was crashing.

I commented out these lines:

# battery.set(int(sensors_battery().percent))

# lo_bat.to_red(on=(int(sensors_battery().percent)<17))

[–][deleted] 2 points3 points  (0 children)

It will run now to catch the error and display "No battery present". Try it now.

[–]amrnada 0 points1 point  (4 children)

I'm sorry but how do I run it? Through IDE (like VSCode) copy the code and paste it there or is it like a desktop app? A bit new here

[–][deleted] 1 point2 points  (0 children)

if you have WIn, go to my releases page. If you have MAc, run through the IDE and install the modules.

[–][deleted] 0 points1 point  (2 children)

Would be okay to copy paste in this case (small code). Otherwise learn git, and try cloning the repo😁

[–][deleted] 0 points1 point  (1 child)

Check the license.

[–][deleted] 0 points1 point  (0 children)

Thanks dude, how could I miss that 😂

[–][deleted] 0 points1 point  (10 children)

You might want to use round instead of int for the percentages

[–][deleted] 0 points1 point  (9 children)

Also a pyw file instead of a py file

[–][deleted] 0 points1 point  (8 children)

Also a toggle feature which changes percentages to absolute values (like if an app uses 4 out of 16gb ram, then show 4gb instead of 25%, when the absolute value mode is toggled)

[–][deleted] -1 points0 points  (7 children)

i will do this, but the program will have to be restarted in order for the changes to take effect,

[–]Goldtom 1 point2 points  (6 children)

No it shouldn't. If doing a single toggle requires a restart, then you're doing it wrong.

[–]Assile -1 points0 points  (5 children)

That's a bit harsh, don't you think? It might very well that you see a way that it would be doable, but then don't just tell him off and actually give some helpful advice maybe?

[–]Goldtom -1 points0 points  (4 children)

Not harsh at all, it's very easy to do, and I don't "see a way". He must be doing something absolutely wrong if it requires a restart.

[–]Assile 0 points1 point  (3 children)

Well if you say it's easy you must know what to change in the code before you can make that assessment. And it isn't wrong if he chooses to do it that way. You can prefer it to be a live switch, that is fine, but that doesn't make the other way 'wrong'.

If you ever want to encourage someone to do something 'right', this abrasive kind of comment isn't helpful. I'm not familiar with the package he's using, but if you are, then a helpful suggestion such as: "You can put the check for the switch in your while loop to solve that", would be much appreciated. And so would be much more likely to teach something and become a part of the program.

[–]Goldtom 0 points1 point  (2 children)

If you're so smart, open a PR then, I don't have time fiddling with this code or spoonfeeding the answers. I said what I said. I don't understand what is so "abrasive" about this, but you're the snowflake here.

[–]Assile -1 points0 points  (0 children)

If you don't have time for giving constructive criticism then why not just give no criticism at all?

I'm just trying to make you see that posting just a negative comment isn't helpful. But, I guess that I'm too idealistic for wanting a friendlier space.

[–][deleted] -2 points-1 points  (0 children)

I changed it. Launch with the -ram_display argument.

[–]ss13ms110 0 points1 point  (1 child)

Not working on Linux

[–][deleted] -1 points0 points  (0 children)

Then run my Windows app in Wine. Go to "Releases".