-
Notifications
You must be signed in to change notification settings - Fork 0
/
ChosenFile.py
37 lines (25 loc) · 972 Bytes
/
ChosenFile.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
#!/usr/bin/env python
# -*- coding: cp1250 -*-
import pygtk
import gtk
import LinkFileWindow
class ChosenFile(gtk.Window):
def __init__(self, chosenFilePath):
super(ChosenFile, self).__init__()
self.connect('destroy', gtk.main_quit)
self.set_default_size(400, 50)
self.set_position(gtk.WIN_POS_CENTER)
self.set_title('Czy potwierdzasz wybor pliku ?')
buttonConfirm = gtk.Button('Tak')
buttonConfirm.connect('clicked', self.chooseFile, chosenFilePath)
filePath = gtk.Label(chosenFilePath)
screen = gtk.Fixed()
screen.put(filePath, 10, 10)
screen.put(buttonConfirm, 10, 30)
self.add(screen)
self.show_all()
gtk.main()
return
def chooseFile(self, widgets, chosenFilePath):
LinkFileWindow.LinkFileWindow.chosenFilePath = chosenFilePath
LinkFileWindow.launch()