This file contains hidden or 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
from tkinter import * | |
from kurva_eliptik import KurvaElliptik | |
from Elgamal import Elgamal | |
main_window = Tk() | |
label1 = Label(main_window, text="Nilai a") | |
label2 = Label(main_window, text="Nilai b") | |
label3 = Label(main_window, text="Nilai p") | |
label4 = Label(main_window) |
This file contains hidden or 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
import pandas as pd | |
import calendar | |
def generate_agenda(year, months, interval): | |
range_interval = [f'b{i}' for i in range(1, interval+1)] | |
end_of_date = calendar.monthrange(year, months)[1] | |
dates_inamonth = pd.date_range(start=f'{year}/{months}/1', end=f'{year}/{months}/{end_of_date}').strftime("%d-%m-%Y").tolist() | |
frame = pd.DataFrame(index=dates_inamonth) | |
for intv in range_interval: |