Une interface graphique pour l'émulateur de console de jeux SEGA Megadrive DGen
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 

76 lines
4.4 KiB

#!/usr/bin/python
# -*- coding: utf8-*-
import base64
import cStringIO
import Image
from Tkinter import *
import ImageTk
root= Tk()
# Application icon base 64 encoded
ICON = """R0lGODlhQABAAOf/AAAHogAQoxMQoAMZpBEcpwAhqAEjqwolrQAqrwAtsgAyt
SwqpwA3tBUysScxqwo5twA+uhA7uQBAvABBvQBFwDM5rg9FugBLvy4/shhHvQRNwgBRxQ1Ox
C9GtgBTxwBVyQNYxQBZzBxTwgBc0A5ayABfzABizxZcyilaw05RtQBm0kBZvyJhyRJmzQBs0
gBu1Blo0EhdvjRkyAxw1gB02SFszQB23AB52D5px1pkwAF82xx21lNpwx940gx93TtxzgCB3
11rwW1vbACE4lBvyDR30wCH5gCJ4RuB4ltxxk53z2pwwh2F1wCM6jd+01Z2yiCF3kZ70gCP5
zuAzg2M5FB7zUd+zgCS6RWO6CqK0gCU7Hp8eTmH3BmQ4gCX6D2J1Wh+y02HykqI2GKE0VKJ0
w6b7ECO3ACg8CKZ1z6SykOSwBSe6W2HzziV4gCk9IaIhRqe8Cua5meL0gCn8VqRwkaV1lSSz
1GS3EWW3naKzoaIyQCt6h+k6DGf5WyP1yyi2ZGMi3CTqGKT04yOiw6r9WiVxwCv+IuQkh6p4
GmV2naS1CWp5zal5ACz/JGTkGScyn6U0iCw4XKbwpqUk4OZqJOXmj+r0C2w55eZlpKaoouY0
n2c2Heg2nykv3elxKOdnICkxmarzp6gnWes1Z2ipYenw5Sj2W2w2qanpHC03Z+n1aWqramrq
Hu04KKut6ir1Iez546z1ZayyY+z4oC55K+xrqGx3om45pq12a6ztqey2YS96Yy76Zq618Kzr
qW33b21rrW3tKG55bO4up+73724trK7xbm7uKy+5MS8tby+u6bC5qnB7bjA4snBuq/G5b/Fx
8jDwcLFwdHLysvNysnO0MrO5NbOx8fV3NLX2dXX1N7W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uwwwjIV4IQTKEaSBWONLRRDT5oQQtqpcIptnGKXXaypmPcQTBJ+QK82
iF84+srGapRjfVIgxqF9YIWvKDWU1zjFEaw5z392E/JhnMHspj+xmXFV7UQhKEa11iPMqYBD
UZ44beIvcIppnGKJsA0m55k7Rjz1wNjQCMLPqVtCOwAjdxaRxnS6C0cyvBb0Y4iGqF4aUXvm
dyMBtMJ0jBGD1KHsxEUQhrRWM8xogGNRcDhvt0dhTNGQYWmPhW5vITrDWbwiGjIgpBcHYEkn
FER6wRDGcNYxBkmjN9RJGMUavXveAMcRhtkwRjOsEMhm1iKaDRYOLUoRoTd4AYKwyEUxRgFF
q4gBSpgAQtGyLERkIAEHwyBCWkAxTCS4Ylgau90PXBFRNZTi2BEeA4spjCMg0HlYViZyljOc
jCKUYxcdGK5dQ1DMoYRjPWwoha5WMT+HKAc5VD4AhhwjrOc5wwMVzyiDnCVbP4kAYxarOcfq
KjFKvaw5jVHeQ1nQHR3u9uFLvgXpskV8BF7sApWsOLPqGDFoAlBCEND+QxwADV3gRtcp1LUC
I4VMA3oYGlR/FkUqFjFJQzB6UKzuMUUHvVvE/vfI5AXrlkgBSpQ8ed/wJoUl2iEIWjdaVtPW
NTdLbVLXYrNIZDXB0ygxCdQgYliY0IUyG6EspldaDY/e7vR5vV/O5ntT4jCEcX+hyMwUYlki
3vctbY1rvHb3Qy/tAlHSEMmPlGJbsfbEZOoRCTufe9lN5vN+0a3aEs90TRQAhMJh3e8/zGIh
FsiEiBHhMhWR/6Hkpv8D2hIucpTXoc0qCEQlZhExgexcYEM4uaHyLnOd87znvMcEEAHhCNuX
vOBvOHmQU960AcBiJs73elNf7rT3/CGohOE6ljPuta3zvUtCKHmAQEAOw=="""
#~ icon_file = cStringIO.StringIO(base64.b64decode(ICON))
#~ img = PhotoImage(file='./dgen.gif')
ico = PhotoImage(data=ICON)
root.wm_title('pyDGen - A simple graphical interface to the DGen SEGA GENESIS emulator')
#~ root.iconbitmap('@dgen.png')
root.tk.call('wm', 'iconphoto', root._w, ico)
root.mainloop()