Private Proxies – Buy Cheap Private Elite USA Proxy + 50% Discount!Private Proxies – Buy Cheap Private Elite USA Proxy + 50% Discount!Private Proxies – Buy Cheap Private Elite USA Proxy + 50% Discount!Private Proxies – Buy Cheap Private Elite USA Proxy + 50% Discount!
    0
  •   was successfully added to your cart.
  • Home
  • Buy proxies
  • Extra features
  • Help
  • Contact
  • Login
  • 50% OFF
    BUY NOW!
    50
    PROXIES
    $19
    --------------------
    BUY NOW!
    BUY NOW!
    BUY NOW!
    BUY NOW!
    BUY NOW!
    $29
    $49
    $109
    $179
    $299
    --------------------
    --------------------
    --------------------
    --------------------
    --------------------
    PROXIES
    PROXIES
    PROXIES
    PROXIES
    PROXIES
    100
    200
    500
    1,000
    2,000
    TOP SELLER
    BEST VALUE
    For All Private Proxies!

I have a program that allows me to check (in a nicer way than using command prompt) what my ping will be when playing League Of Legends. I’ve implemented all of the elements that I had hoped, however now I’m simply looking for ways that my code can be improved.

I do have some gripes with my current code that I’m not completely satisfied with… including;

  • Having to use “// = “information” in order to display tips for the settings file, I’d much rather just have some form of comment system such as # as in python
  • I’m unsure whether the way I’m checking for errors in the settings file is as effective as it can be.
  • I’m also aware that the use of place is not exactly ideal.
import subprocess import re import os from tkinter import *  master = Tk() master.config(bg="#2b2f35") master.resizable(False, False) master.geometry('500x305+50+50') master.title("Ping Check")  topFrame = Label(text="Ping Checker", bg="#454c56", fg="#fff", width=43, height=3, font="Bahnschrift 14") topFrame.place(x=11,y=12)  displayPing = Label(text="", bg="#2ecc71", font="Bahnscrift 10", width=18, height=6, fg="#fff") displayPing.place(x=11, y=93)  infoFrame = Label(text="Lorem Ipsum", bg="#454c56", fg="#fff", width=52, height=7, font="Bahnschrift 8", wraplength=300) infoFrame.place(x=172, y=93)  moreInfoFrame = Label(text="Lorem Ipsum", bg="#454c56", fg="#fff", width=52, height=7, font="Bahnschrift 8", wraplength=300) moreInfoFrame.place(x=172, y=194)  informError = Label(text="", fg="red", bg="#2b2f35", width=23, height=3,font="Bahnschrift 8") informError.place(x=11, y=242)  def changeSettingsO():     os.startfile('settings.txt')  changeSettings = Button(text="Change Settings", bg="#3498db", font="Bahnscrift 10", width=18, height=2, fg="#fff", relief=FLAT, borderwidth=0, command=changeSettingsO) changeSettings.place(x=11, y=198)  try:     with open("settings.txt", "r") as f:         for line in f:             key,value = line.strip().split(" = ")             value = value.strip('"')              if key == 'region':                 region = value              if key == 'pingSpeed':                 pingSpeed = int(value)  except IOError:     file = open("settings.txt","w+")     file.write('// = "If you edit anything below, please save the file and restart the program for changes to apply"')     file.write('// = "The region setting should be set to the region that you play in. Valid options -  (EUW)(NA)"')     file.write('// = "The pingSpeed setting dictates how often to check your current ping. Valid options - 1-500"')      file.write('\nregion = "default"')     file.write('\npingSpeed = "default"')      pingIP = "104.160.141.3"     region = "default"     file.close()  errorCheck = 0  if region == "EUW": pingIP = "104.160.141.3" elif region == "NA": pingIP = "104.160.131.3"  else:     informError.config(text="Error in settings - check\n your region value\n (should be EUW or NA)")     region = "default"     pingIP = "104.160.141.3"     errorCheck =+ 1  if 1 <= pingSpeed <= 500: pingSpeedInt = pingSpeed * 1000  else:     informError.config(text="Error in settings - check\n your PingSpeed value\n (should be within 1-500)")     pingSpeed = 1     errorCheck = errorCheck + 1     pingSpeedInt = pingSpeed * 1000  def pingDisplay():     displayPing.config(bg="#2ecc71")     master.after(10, checkPing)  def checkPing():     global region     global pingSpeed     global pingSpeedInt      if errorCheck == 0:         informError.config(text="No errors detected\n looks like the progrm\nis running correctly")      if errorCheck == 2:         informError.config(text="Critical Error - It appears \nboth settings in the file have \nerrors, please check!")      try:         pattern = r"Average = (\d+\S+)"         ping = subprocess.Popen(["ping", pingIP, "-n", "1"], stdout = subprocess.PIPE,stderr = subprocess.PIPE, shell=True)         fullOutput = ping.communicate()         scrubbedOutput = re.findall(pattern, fullOutput[0].decode())[0] + " (" + region + ")" + "\n" + "check every: "  + str(pingSpeed) + "s"         displayPing.config(text=scrubbedOutput, bg="#27ae60")         master.after(pingSpeedInt, pingDisplay)      except:         print("Error")  master.after(10, checkPing) master.mainloop() 

✓ Extra quality

ExtraProxies brings the best proxy quality for you with our private and reliable proxies

✓ Extra anonymity

Top level of anonymity and 100% safe proxies – this is what you get with every proxy package

✓ Extra speed

1,ooo mb/s proxy servers speed – we are way better than others – just enjoy our proxies!

50 proxies

$19/month

50% DISCOUNT!
$0.38 per proxy
✓ Private
✓ Elite
✓ Anonymous
Buy now

100 proxies

$29/month

50% DISCOUNT!
$0.29 per proxy
✓ Private
✓ Elite
✓ Anonymous
Buy now

200 proxies

$49/month

50% DISCOUNT!
$0.25 per proxy
✓ Private
✓ Elite
✓ Anonymous
Buy now

500 proxies

$109/month

50% DISCOUNT!
$0.22 per proxy
✓ Private
✓ Elite
✓ Anonymous
Buy now

1,000 proxies

$179/month

50% DISCOUNT!
$0.18 per proxy
✓ Private
✓ Elite
✓ Anonymous
Buy now

2,000 proxies

$299/month

50% DISCOUNT!
$0.15 per proxy
✓ Private
✓ Elite
✓ Anonymous
Buy now

USA proxy location

We offer premium quality USA private proxies – the most essential proxies you can ever want from USA

100% anonymous

Our proxies have TOP level of anonymity + Elite quality, so you are always safe and secure with your proxies

Unlimited bandwidth

Use your proxies as much as you want – we have no limits for data transfer and bandwidth, unlimited usage!

Superfast speed

Superb fast proxy servers with 1,000 mb/s speed – sit back and enjoy your lightning fast private proxies!

99,9% servers uptime

Alive and working proxies all the time – we are taking care of our servers so you can use them without any problems

No usage restrictions

You have freedom to use your proxies with every software, browser or website you want without restrictions

Perfect for SEO

We are 100% friendly with all SEO tasks as well as internet marketing – feel the power with our proxies

Big discounts

Buy more proxies and get better price – we offer various proxy packages with great deals and discounts

Premium support

We are working 24/7 to bring the best proxy experience for you – we are glad to help and assist you!

Satisfaction guarantee

24/7 premium support, free proxy activation and 100% safe payments! Best reliability private proxies for your needs!

Best Proxy Packs

  • 2,000 Private Proxies $600.00 $299.00 / month
  • 1,000 Private Proxies $360.00 $179.00 / month

Quick Links

  • More information
  • Contact us
  • Privacy Policy
  • Terms and Conditions

Like And Follow Us


Copyright ExtraProxies.com | All Rights Reserved.
  • Checkout
  • Contact
  • Help
  • Home
  • My Account
  • My Cart
  • News
  • Privacy Policy
  • Proxy features
  • Proxy packs
  • Terms and Conditions
Private Proxies – Buy Cheap Private Elite USA Proxy + 50% Discount!
    0 items