-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathflowmap_top.py
More file actions
21 lines (16 loc) · 770 Bytes
/
flowmap_top.py
File metadata and controls
21 lines (16 loc) · 770 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
import tkinter as tk
from flowmap import get_flowmap
from common_widgets import SaveTexture
class Flowmap_Top(tk.Toplevel):
def __init__(self, parent, path, size_selected):
super().__init__(parent)
self.title('Flowmap Creator')
self.geometry('264x338')
self.resizable(False, False)
self.intro_label = tk.Label(self, text='Flowmap basado en Heightmap')
self.intro_label.grid(row=0,column=0,columnspan=3,sticky='we')
self.path = path
self.im = get_flowmap(self.path)
self.im_preview = self.im.resize((256, 256))
self.save_widget = SaveTexture(self, 'Flowmap', 'Save', self.im_preview, self.im, size_selected)
self.save_widget.grid(row=6, column=0, columnspan=3, sticky='we')