Skip to content

Commit

Permalink
Release v1.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
TFAGaming committed Nov 22, 2023
1 parent 8d1a62b commit e5ecdf3
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 24 deletions.
5 changes: 4 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,4 @@
sparklypython-config.json
sparklypython-config.json
build
dist
main.spec
27 changes: 4 additions & 23 deletions main.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
from threading import Thread
import subprocess
import ast
import requests
import webbrowser

global file_path, edited, config
file_path = ''
Expand Down Expand Up @@ -385,12 +385,6 @@ def install_libraries():

pb.pack(side=TOP)

def does_package_exist(package_name: str):
pypi_url = f'https://pypi.org/project/{package_name}/'
response = requests.get(pypi_url)

return response.status_code == 200

def install_library():
package_name = toplvl_main_frame_library_entry_var.get()

Expand All @@ -404,17 +398,6 @@ def install_library():
status_label.config(text=f'Installing... 0%')

def main():
does_package_exist_res = does_package_exist(package_name)

if (not does_package_exist_res):
messagebox(f'Invalid package name, \'{package_name}\' doesn\'t exist.', 'warn')

try:
install_btn.config(state='normal')
except: pass

return

global process
process = subprocess.Popen(['pip', 'install', package_name], stdout=subprocess.PIPE, stderr=subprocess.PIPE, text=True)

Expand Down Expand Up @@ -519,7 +502,7 @@ def main_goto():
line_number = int(line_number_string)

if line_number not in range(1, 32767):
messagebox('The integer is out of range [1, 32767].', 'warn')
messagebox('The integer is out of range: [1, 32767].', 'warn')
return

editor.mark_set(INSERT, f"{line_number}.0")
Expand Down Expand Up @@ -658,14 +641,12 @@ class IDE:

configure_menu = Menu(menu_bar, tearoff=0)
configure_menu.add_command(label='Terminal', command=configure_terminal)
configure_menu.add_command(label='Appearance', command=None, state=DISABLED)
configure_menu.add_command(label='Syntax highlighting', command=None, state=DISABLED)

menu_bar.add_cascade(label='Settings', menu=configure_menu)

help_menu = Menu(menu_bar, tearoff=0)
help_menu.add_command(label='About', command=lambda: messagebox('SparklyPython\n\n- Version: 1.0\n- Developer: T.F.A\n- Language: Python\n- GUI: Tkinter (Python)\n- Open-source? No\n\n© Copyright 2024, The MIT License', 'info'))
help_menu.add_command(label='Source (GitHub)', state='disabled', command=None)
help_menu.add_command(label='About', command=lambda: messagebox('SparklyPython\n\n- Version: 1.0\n- Developer: T.F.A\n- Language: Python\n- GUI: Tkinter (Python)\n- Open-source? Yes\n\n© Copyright 2024, The MIT License', 'info'))
help_menu.add_command(label='Source (GitHub)', command=lambda: webbrowser.open('https://github.com/TFAGaming/SparklyPython'))

menu_bar.add_cascade(label='Help', menu=help_menu)

Expand Down
Binary file added releases/SparklyPython-1.0.0-release.rar
Binary file not shown.

0 comments on commit e5ecdf3

Please sign in to comment.