We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7f83888 commit 0fd54f7Copy full SHA for 0fd54f7
periscope/gui.py
@@ -1,4 +1,5 @@
1
-#!/usr/bin/env python
+import os
2
+
3
import ttk
4
import Tkinter
5
@@ -89,7 +90,8 @@ def welcome_page(self, root):
89
90
title = ttk.Label(page, text='Periscope', font='bold 28', anchor='s').pack(ipady=10)
91
subtitle = ttk.Label(page, text='Tor Censorship Detector', font='24',
92
foreground='grey').pack()
- logo = Tkinter.PhotoImage(file='resources/logo.gif')
93
+ photo_file = os.path.join(os.path.dirname(__file__), "resources","logo.gif")
94
+ logo = Tkinter.PhotoImage(file=photo_file)
95
image = Tkinter.Label(page, image=logo, anchor='s')
96
image.pack(padx=20, ipady=20)
97
image.image = logo
0 commit comments