Skip to content

Commit

Permalink
Ajotu des ficheirs soruces, ressources et documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
jtpaquet committed Jun 5, 2018
1 parent f8fd6a0 commit 2578469
Show file tree
Hide file tree
Showing 116 changed files with 22,817 additions and 0 deletions.
Binary file added Assets/camera.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Assets/default.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Assets/hflip.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Assets/logo.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Assets/rec.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Assets/rotate.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Assets/seq.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Assets/vflip.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Assets/video.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Assets/wait.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
49 changes: 49 additions & 0 deletions CallTipWindow.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
# http://www.voidspace.org.uk/python/weblog/arch_d7_2006_07_01.shtml

from tkinter import *

class ToolTip(object):

def __init__(self, widget):
self.widget = widget
self.tipwindow = None
self.id = None
self.x = self.y = 0

def showtip(self, text):
"Display text in tooltip window"
self.text = text
if self.tipwindow or not self.text:
return
x, y, cx, cy = self.widget.bbox("insert")
x = x + self.widget.winfo_rootx() + 27
y = y + cy + self.widget.winfo_rooty() +27
self.tipwindow = tw = Toplevel(self.widget)
tw.wm_overrideredirect(1)
tw.wm_geometry("+%d+%d" % (x, y))
try:
# For Mac OS
tw.tk.call("::tk::unsupported::MacWindowStyle",
"style", tw._w,
"help", "noActivates")
except TclError:
pass
label = Label(tw, text=self.text, justify=LEFT,
background="#ffffe0", relief=SOLID, borderwidth=1,
font=("tahoma", "8", "normal"))
label.pack(ipadx=1)

def hidetip(self):
tw = self.tipwindow
self.tipwindow = None
if tw:
tw.destroy()

def createToolTip(widget, text):
toolTip = ToolTip(widget)
def enter(event):
toolTip.showtip(text)
def leave(event):
toolTip.hidetip()
widget.bind('<Enter>', enter)
widget.bind('<Leave>', leave)
13 changes: 13 additions & 0 deletions Exceptions_ModuleCamera.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# Ce fichier contient deux classes d'exceptions qui héritent de "Exception"


# Exception de Tkinter
class TkinterError(Exception):
def __init__(self, mismatch):
Exception.__init__(self, mismatch)


# Exception de la PiCamera
class PiCameraError(Exception):
def __init__(self, mismatch):
Exception.__init__(self, mismatch)
11 changes: 11 additions & 0 deletions PiCamera
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
[Desktop Entry]
Type=Application
Encoding=UTF-8
Name=PiCamera
Comment=Prise de photo avec la PiCamera
Terminal=false
StartupNotify=false
Exec=/home/pi/Camera_module/PiCamera_exec
Icon=/home/pi/Camera_module/Assets/logo.png
Version=1.0
Path=/home/pi/Camera_module

0 comments on commit 2578469

Please sign in to comment.