Skip to content
This repository was archived by the owner on Mar 31, 2020. It is now read-only.

Green Greenhouses #2

Open
wants to merge 50 commits into
base: master
Choose a base branch
from
Open

Green Greenhouses #2

wants to merge 50 commits into from

Conversation

FelixRandle
Copy link

No description provided.

FelixRandle and others added 30 commits February 21, 2019 21:53
setup a basic frame and added the frame of the login page
Updated .flake8 and Pipfile configs,
Wrote initial code for UI.
-> Pulls calendar evetns from sqlite3 database
-> Displays them with a small, basic tkinter GUI
-> See the populate() function in DBHandler and add your events there.
Next step is to add an "add event" GUI interface.
I'm a silly boy.
* Added basic backend functionality

-> Pulls calendar evetns from sqlite3 database
-> Displays them with a small, basic tkinter GUI
-> See the populate() function in DBHandler and add your events there.
Next step is to add an "add event" GUI interface.

* Moved folder

I'm a silly boy.
-> You can now add an event with a click of a button
-> Simple GUI, needs improving
-> Next task is to remove events
* Added basic backend functionality

-> Pulls calendar evetns from sqlite3 database
-> Displays them with a small, basic tkinter GUI
-> See the populate() function in DBHandler and add your events there.
Next step is to add an "add event" GUI interface.

* Moved folder

I'm a silly boy.

* Added Add event option and menu

-> You can now add an event with a click of a button
-> Simple GUI, needs improving
-> Next task is to remove events
Created a new file for each of the application's pages.
* Added basic backend functionality

-> Pulls calendar evetns from sqlite3 database
-> Displays them with a small, basic tkinter GUI
-> See the populate() function in DBHandler and add your events there.
Next step is to add an "add event" GUI interface.

* Moved folder

I'm a silly boy.

* Added Add event option and menu

-> You can now add an event with a click of a button
-> Simple GUI, needs improving
-> Next task is to remove events

* Split up pages

Created a new file for each of the application's pages.
Merged Zrupi UI with main file.

Fixed errors with DBHandler addEvent call.
Moved some brackets.
-> Added a method to remove an event from the database - functional but needs to be hooked up to the UI which I hope is a WIP.
-> Fixed some PEP-8 Gucciness.
-> Hooked up delete functionality to basic button and UI - It doesn't refresh, see discord.
-> Fixed some PEP-8 violations
-> Fixed wrong table name
Gave application constant size.
FelixRandle and others added 20 commits February 25, 2019 23:17
Apparently I can't do merge conflicts lmao
Added new file:
  loginpage.py

Added new methods:
DBHandler.py:
  addUser()
  tryLogin()

Still need to implelement what actually happens when the user logs in. IE a redirect to calendar.py. Basic UI has been built for the login system with message boxes and stuff, take a look.
added more indepth date checking and addedback button 😄
Updated path to reflect loading from different path
Dark mode added, currently toggled by pressing Q on any page.
* Update application.py

added more indepth date checking and addedback button 😄

* fixed bug that alows you to have month be 0

* fixed linting and bug where month/day could be 0
* Update application.py

added more indepth date checking and addedback button 😄

* fixed bug that alows you to have month be 0

* fixed linting and bug where month/day could be 0

* Update application.py

changd inputs to tk.Text from tk.Entry and resized the entry boxes also when you create a event is updates the list

* Update application.py

added the start of horrible looks and the hatrid

* updated __main__ and app.py

this one is anoying
all black,
text is near black
to click you have to hold left click when clicking a button a popup will apear press enter then let go of left click on the let go the button will click
also closing the app may be hard

* added more hatrid

* removed random import

* fixed linting issue
Undid things done poorly or already done previously.
* Undid changes

Undid things done poorly or already done previously.

* Re-Added UI deletion
* Undid changes

Undid things done poorly or already done previously.

* Re-Added UI deletion
* Update application.py

added more indepth date checking and addedback button 😄

* fixed bug that alows you to have month be 0

* fixed linting and bug where month/day could be 0

* Update application.py

changd inputs to tk.Text from tk.Entry and resized the entry boxes also when you create a event is updates the list

* Update application.py

added the start of horrible looks and the hatrid

* updated __main__ and app.py

this one is anoying
all black,
text is near black
to click you have to hold left click when clicking a button a popup will apear press enter then let go of left click on the let go the button will click
also closing the app may be hard

* added more hatrid

* removed random import

* fixed linting issue

* fix for no lowercase in entrys
This reverts commit fd2036c.
User login created. Not yet linked to main application.
* Update application.py

added more indepth date checking and addedback button 😄

* fixed bug that alows you to have month be 0

* fixed linting and bug where month/day could be 0

* Update application.py

changd inputs to tk.Text from tk.Entry and resized the entry boxes also when you create a event is updates the list

* Update application.py

added the start of horrible looks and the hatrid

* updated __main__ and app.py

this one is anoying
all black,
text is near black
to click you have to hold left click when clicking a button a popup will apear press enter then let go of left click on the let go the button will click
also closing the app may be hard

* added more hatrid

* removed random import

* fixed linting issue

* fix for no lowercase in entrys

* half finsihed but have to go try finished this
Updated and moved aspects of code.
Updated dark mode update method.
ttl, jsonMessages["escapeFour"])):
if (messagebox.askyesno(
ttl, jsonMessages["escapeFive"])):
pass
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this makes me very dizzy. you should try to avoid this kind of deep nesting.

Create the applications pages.

Arguments:
N/A
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

pointless thing to include in the docstring.

self.cursor.execute('''INSERT INTO events(name,userid,location,
date,description)
VALUES(?,?,?,?,?)''', (name,
userID,
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is an incredibly weird way to format this.

@lemonsaurus
Copy link
Member

Nice overview in the README, and a fun idea for an app. Looking forward to testing it out.

As for the code itself, it's mostly competent but the readability is poor. Highly inconsistent code style with stuff like indentation, brace styles, docstrings, variable naming.. Some shadowing of built-ins and weird choice of data structures (like dicts where a simple tuple would be fine).

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants