-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
restructured for workflow optimization
- Loading branch information
1 parent
991970a
commit 2b2984f
Showing
31 changed files
with
60 additions
and
240 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
name: Publish Python Package | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
pull_request: | ||
branches: | ||
- main | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v2 | ||
|
||
- name: Set up Python | ||
uses: actions/setup-python@v2 | ||
with: | ||
python-version: '3.12' | ||
|
||
- name: Install latest version of build | ||
run: pip install --upgrade build | ||
|
||
- name: Build package | ||
run: python -m build | ||
|
||
- name: Install twine | ||
run: pip install --upgrade twine | ||
|
||
- name: Publish package to TestPyPI | ||
env: | ||
TWINE_USERNAME: __token__ | ||
TWINE_PASSWORD: ${{ secrets.CALENDAR_WIDGET_TOKEN }} | ||
run: twine upload --repository dist/* --skip-existing |
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
from calendar_widget import Calendar |
File renamed without changes.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
import tkinter | ||
import calendar_widget | ||
|
||
# define the main window into which the widget will be placed | ||
root = tkinter.Tk() | ||
root.geometry('600x600') # the geometry function defines the size of the tkinter window | ||
# - in this case, we are using a window that is 600px by 600px | ||
|
||
# create the calendar widget | ||
Calendar = Calendar(root, # specify the tkinter window into which the widget will be placed | ||
pos_x = 0, # set the x position of the calendar widget within the tkinter window | ||
pos_y = 0, # set the y position of the calendar widget within the tkinter window | ||
background = 'lightblue', # set the background of the calendar to light blue | ||
) | ||
|
||
# Note: images of the type 'png', 'gif', 'ppm', and 'pgm' can be set as the background. | ||
# However, these images will not scale with the size of the calendar. | ||
|
||
# remember to call your mainloop function so that the tkinter window is persistent | ||
root.mainloop() |
This file was deleted.
Oops, something went wrong.