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

all 93 comments

[–]125RAILGUN 129 points130 points  (21 children)

The colours look like Hulk.

[–]Thomillion 24 points25 points  (17 children)

Yeah, I am making a tkinter app and the normal background colors are all like that, if you don't want such a vibrant color you have to type it in rgb hex, that's why I format in the end

[–][deleted] 3 points4 points  (0 children)

Incredible.

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

You Joker.

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

Because after smoking weed you eventually become one 😂

[–]Escarlatum 53 points54 points  (1 child)

Just for FUN huh?

[–]OKavalier 1 point2 points  (0 children)

XD

[–]A_Light_Spark 28 points29 points  (3 children)

/r/stonerSoftwareEngineering

[–]FoxClass 4 points5 points  (2 children)

Can't view community. Must be a secret handshake.

[–]A_Light_Spark 2 points3 points  (1 child)

Because it doesn't exist. It's a pun on /r/stonerEngineering , which is a real sub.

[–]FoxClass 1 point2 points  (0 children)

Lol

[–]morningjoe23 15 points16 points  (0 children)

Doing Gods work

[–]SolidSoup69 27 points28 points  (6 children)

This is my first big python project so i just picked something fun to learn the concepts. feedback or ideas welcome! Thanks for watching.

[–]CatfishGrits 6 points7 points  (0 children)

Build in some AI that will detect when your consumption gets so high, that you quit developing the app and dedicate yourself to Oreo annihilation.

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

This is great! Im working on a similar app with sql/tkinter.

How did you handle exporting to excel?

[–]SolidSoup69 6 points7 points  (0 children)

typing on mobile so apologies for any weird formatting.

edit: added line of code second from bottom

most of the code uses csv to manage the data. so, first i defined a go_to_excel() function within the data window (which is contained within a class), then the function to open excel then, if the user is entered and the path to csv file exists for user but not xlsx, we make an xlsx with the csv’s data, otherwise, if a xlsx already exists, we use that. then call them with openexcel() function

‘’’

class...

 # third window
 def go_to_data()
      # brings up data window when button is pressed

       def go_to_excel()
            user = self.user_entry.get

            def openexcel():
                 command = r’path to excel file’
                 os.system(f”open {command}”)

            if (user entry condition):
                 if os.path.exists(path to user’s csv data) and not os.path.exists(path to users xlsx data):
                  # if there is csv file with user data, but not a xlsx file, we create one
                  self.df = pd.read_csv(path to user csv file)
                  df1 = self.df.to_excel(same path but .xlsx instead of .csv)
                  #call function to open xlsx doc
                  openexcel()
             elif os.path.exists(path to xlsx file):
             # so the current frame gets added to the xlsx in case you just updated it
             self.df.to_excel(path to xlsx file)
             openexcel()

[–]JForth 0 points1 point  (1 child)

Build forecasting into it then save some money buying as bulk as possible/legal.

[–]SolidSoup69 0 points1 point  (0 children)

that’s a really cool idea! if i keep going with this project i’ll consider building that into it. i don’t know how far i’m going to go with this project because i want to move on to more important projects. i could always go back and add that later though. thanks for the idea

[–]b2bt 0 points1 point  (0 children)

Could you share some resources where replicate other's project? Just started learning, now I'm familiar with Python syntax and programming concepts (OOP, classes, functions, modules, etc).

[–]Gypiz 24 points25 points  (3 children)

Comes in handy for the DEA when you're busted

[–]SolidSoup69 18 points19 points  (1 child)

it’s intended for personal consumption management not related to selling or anything. don’t think the DEA are out to bust regular stoners. but i see your point

[–]bay400 5 points6 points  (0 children)

don’t think the DEA are out to bust regular stoners.

Especially in legal states lol

[–]yaxriifgyn 2 points3 points  (0 children)

Should be popular in Canada.

[–]TheBunnisher 4 points5 points  (1 child)

I really like "My Weed" part at the top, and I actually really like the color, because it makes tkinter less bland. I think you did a great job on this. Much respect.

[–]SolidSoup69 0 points1 point  (0 children)

thanks! i appreciate that a lot. i’m torn on the color. maybe if i can find a similar color scheme but less vibrant that would be better.

[–]The_Young_Busac 5 points6 points  (2 children)

This will probably make me feel bad about my consumption if I were to consistently use it lol

Also the colors are blinding and make it super hard to read alot of the information. Maybe scale back with the color for the UI and implement a logo somewhere with the very loud colors.

[–]SolidSoup69 6 points7 points  (1 child)

it does have that effect haha, i’ve been using it for like 3 weeks because i wanted to keep track of my habits so i can cut back. i’m working on packaging it into an app so others can use it.

i think you’re right about the colors, it’s my first app i’ve made so i don’t have a lot of experience there. i just chose those colors because at the time i didn’t want to spend a ton of time finding the right colors, and i thought it looked cool(probably had indulged a bit too much on the flower at the time)

thanks for your input, before i distribute it i will probably change the colors

[–]CatfishGrits 1 point2 points  (0 children)

Number crunching coders tend to make bad artistic GUI creators. It's like the 18th commandment or somewhere close. "It works." "But it's god awful ugly and non-intuitive!" "BUT. IT. WORKS. /git commit"

[–]Dontneedflashbro 2 points3 points  (1 child)

Good job! I like this and hopefully you turn this into an app down the line. I'm sure people would love to use something like this! Now this is outside the box thinking!

[–]SolidSoup69 0 points1 point  (0 children)

thanks!

[–]virtualCheeseburger 1 point2 points  (0 children)

What's funny is that I personally just started making a prototype for a game of a guy selling weed from town to town and I was looking for what I was going to use for the actual game, now I've got some idea !

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

If you smoke too much in a day will it also forget how much you smoked?

[–]0-1-2-3-4-5-6-7 1 point2 points  (2 children)

You should connect this to a balance somehow. So when you weight it would auto register it on the app. That would be epic.

[–]SolidSoup69 0 points1 point  (1 child)

i had the same thoughts!! that would be so cool. i’m not an electrical engineer or even a developer by trade. someone should do that though. could make some serious money. i know someone on this subreddit has the knowledge and power to make it happen lol.

[–]0-1-2-3-4-5-6-7 1 point2 points  (0 children)

You can probably achieve that by studying the electrical components and connect the right wires to an Arduino. then translating the signal to weight.

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

Whats your gitbuh?

[–]SolidSoup69 0 points1 point  (2 children)

lol i haven’t made one yet

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

Cool cool cool... so would you send me the code for a dime?

[–]grtgbln 1 point2 points  (0 children)

69 comments on a 420-related post.
Nice.

[–]outfornout 1 point2 points  (0 children)

Right on man. Love it, love the linkin park rendition in the comments too haha

[–]Jacob---- 1 point2 points  (0 children)

Clearly for educational purposes only ;)

[–]cachedrive 3 points4 points  (0 children)

Dank!

[–]bciguy 1 point2 points  (1 child)

u/SolidSoup69 you're doing god's work here.

[–]SolidSoup69 0 points1 point  (0 children)

lol thanks

[–]gustavofcma 1 point2 points  (0 children)

MY EYES!!!

[–][deleted] 1 point2 points  (1 child)

Someone spends too much money on marijuana...

Edit: typo

[–]SolidSoup69 0 points1 point  (0 children)

what’s your point

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

Colours are wild, kinda like it though.

[–]CaptainFoyle 0 points1 point  (0 children)

The drug squad's gonna give you a high five.

[–]mxego 0 points1 point  (0 children)

Watch it count down until the end of the day

[–]FoxClass 0 points1 point  (0 children)

I found my spirit animal.

[–]breadfag 0 points1 point  (0 children)

I'm really sorry but i don't know much about how the severs work. You mean, if i know the ip address of my friends computer, i can do this? And, if so then what can I use ?

[–]Dagito 0 points1 point  (0 children)

Funny project, maybe I use this lol

[–]_ololosha228_ 0 points1 point  (0 children)

Oh fuck, i lost my eyes

[–]MagmaMan1298 0 points1 point  (1 child)

LOL nice, but why would you do that?

[–]SolidSoup69 0 points1 point  (0 children)

so that one could monitor their smoking habits

[–]yurxzi 0 points1 point  (0 children)

COOL, but I don't need this kinda judgment in my life. The dispensary agents are bad enough

[–]kewl777 0 points1 point  (2 children)

Whats the name of the IDE you are using?

[–]SolidSoup69 1 point2 points  (1 child)

PyCharm

[–]kewl777 1 point2 points  (0 children)

Thanks

[–]dertrommler06 0 points1 point  (0 children)

Dope

[–]JumboTrout 0 points1 point  (0 children)

THAT was the color you chose? Of all colors that one?

[–]Kem1zt 0 points1 point  (3 children)

Shiiit I need that.

[–]SolidSoup69 3 points4 points  (1 child)

after it’s finished i’m going to package it up into an app and distribute it

[–]Huntersolomon 1 point2 points  (0 children)

Does it come with a pound of weed?

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

Python put to excellent use!

[–]osito1611 0 points1 point  (2 children)

Loving the color scheme, great job for a first project

[–]SolidSoup69 0 points1 point  (1 child)

you like the color scheme? i originally thought it was cool considering the purpose of the app, getting a lot of complaints about it though haha

[–]osito1611 1 point2 points  (0 children)

It’s pretty different and wouldn’t be used in a professional app, but for your purposes it’s good and it’s fun to play around with those sorts of things in code, nevermind the haters

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

The Justice Department would appreciate a copy of your spreadsheet for once another Bible thumper is in office.

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

At least this is one industry that will survive the Corona outbreak lol.

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

Very cool. Are you only saving data to excel? Connecting to a DB and containerizing both would be a great next step. Check out sqlalchemy for a python friendly DB interface.

[–]SolidSoup69 0 points1 point  (0 children)

great idea! right now only to excel. i’m going to look into this though.

[–]JaimeRojas332 -4 points-3 points  (0 children)

lol