mirror of
https://github.com/openmv/openmv.git
synced 2025-11-04 14:49:50 +08:00
parent
944c3b5801
commit
0aaa51bc26
@ -30,8 +30,8 @@
|
||||
<layer number="20" name="Dimension" color="15" fill="1" visible="yes" active="yes"/>
|
||||
<layer number="21" name="tPlace" color="7" fill="1" visible="yes" active="yes"/>
|
||||
<layer number="22" name="bPlace" color="7" fill="1" visible="yes" active="yes"/>
|
||||
<layer number="23" name="tOrigins" color="15" fill="1" visible="no" active="yes"/>
|
||||
<layer number="24" name="bOrigins" color="15" fill="1" visible="no" active="yes"/>
|
||||
<layer number="23" name="tOrigins" color="15" fill="1" visible="yes" active="yes"/>
|
||||
<layer number="24" name="bOrigins" color="15" fill="1" visible="yes" active="yes"/>
|
||||
<layer number="25" name="tNames" color="7" fill="1" visible="no" active="yes"/>
|
||||
<layer number="26" name="bNames" color="7" fill="1" visible="no" active="yes"/>
|
||||
<layer number="27" name="tValues" color="7" fill="1" visible="no" active="yes"/>
|
||||
@ -1812,7 +1812,7 @@ design rules under a new name.</description>
|
||||
<attribute name="NAME" x="18.3515" y="32.639" size="0.4064" layer="25" font="vector" ratio="20" rot="R90"/>
|
||||
<attribute name="VALUE" x="18.6055" y="32.131" size="0.4064" layer="27"/>
|
||||
</element>
|
||||
<element name="U10" library="mux" package="TSOPII-54" value="IS42S16800E" x="21.59" y="21.717" smashed="yes" rot="MR270">
|
||||
<element name="U10" library="mux" package="TSOPII-54" value="IS42S81600E-7TL" x="21.59" y="21.717" smashed="yes" rot="MR270">
|
||||
<attribute name="NAME" x="26.5696" y="9.5388" size="0.6096" layer="26" font="vector" ratio="20" rot="MR0"/>
|
||||
<attribute name="VALUE" x="21.8686" y="30.1956" size="1.27" layer="28" rot="MR270"/>
|
||||
</element>
|
||||
|
||||
Binary file not shown.
@ -6655,7 +6655,7 @@ DIN A3, landscape with extra doc field</description>
|
||||
<part name="C13" library="sfe" deviceset="CAP" device="0402-CAP" value="0.1uF"/>
|
||||
<part name="C14" library="sfe" deviceset="CAP" device="0402-CAP" value="0.1uF"/>
|
||||
<part name="GND3" library="sfe" deviceset="GND" device=""/>
|
||||
<part name="U10" library="mux" deviceset="IS42S16800E" device=""/>
|
||||
<part name="U10" library="mux" deviceset="IS42S16800E" device="" value="IS42S81600E-7TL"/>
|
||||
<part name="U9" library="omnivision" deviceset="OV2640" device=""/>
|
||||
<part name="C16" library="sfe" deviceset="CAP" device="0402-CAP" value="0.1uF"/>
|
||||
<part name="C17" library="sfe" deviceset="CAP" device="0402-CAP" value="0.1uF"/>
|
||||
|
||||
@ -1,7 +1,6 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<interface>
|
||||
<!-- interface-requires gtk+ 3.0 -->
|
||||
<!-- interface-requires gtksourceview 0.0 -->
|
||||
<!-- interface-requires vte 0.0 -->
|
||||
<!-- interface-naming-policy toplevel-contextual -->
|
||||
<object class="GtkAdjustment" id="brightness_adjust">
|
||||
@ -787,21 +786,11 @@
|
||||
<property name="visible">True</property>
|
||||
<property name="can_focus">True</property>
|
||||
<child>
|
||||
<object class="GtkScrolledWindow" id="scrolledwindow1">
|
||||
<object class="GtkScrolledWindow" id="src_scrolledwindow">
|
||||
<property name="visible">True</property>
|
||||
<property name="can_focus">True</property>
|
||||
<child>
|
||||
<object class="GtkSourceView" id="gtksourceview">
|
||||
<property name="visible">True</property>
|
||||
<property name="can_focus">True</property>
|
||||
<property name="left_margin">2</property>
|
||||
<property name="right_margin">2</property>
|
||||
<property name="show_line_numbers">True</property>
|
||||
<property name="tab_width">4</property>
|
||||
<property name="auto_indent">True</property>
|
||||
<property name="insert_spaces_instead_of_tabs">True</property>
|
||||
<property name="highlight_current_line">True</property>
|
||||
</object>
|
||||
<placeholder/>
|
||||
</child>
|
||||
</object>
|
||||
<packing>
|
||||
@ -1165,7 +1154,7 @@
|
||||
</packing>
|
||||
</child>
|
||||
<child>
|
||||
<object class="GtkScrolledWindow" id="scrolledwindow2">
|
||||
<object class="GtkScrolledWindow" id="vte_scrolledwindow">
|
||||
<property name="visible">True</property>
|
||||
<property name="can_focus">True</property>
|
||||
<child>
|
||||
|
||||
@ -1,16 +1,18 @@
|
||||
#!/usr/bin/env python
|
||||
import pydfu
|
||||
import openmv
|
||||
import sys, os, os.path
|
||||
from time import sleep
|
||||
import gtk, gtksourceview2 as gtksourceview
|
||||
import gio
|
||||
import gobject
|
||||
import gtk
|
||||
import vte
|
||||
import gobject
|
||||
import serial
|
||||
import usb.core
|
||||
import usb.util
|
||||
import sys, os, os.path
|
||||
from time import sleep
|
||||
from os.path import expanduser
|
||||
import gtkcodebuffer
|
||||
from gtkcodebuffer import CodeBuffer, SyntaxLoader
|
||||
|
||||
try:
|
||||
# 3.x name
|
||||
import configparser
|
||||
@ -71,18 +73,13 @@ class OMVGtk:
|
||||
self.connected = False
|
||||
map(lambda x:x.set_sensitive(False), self.controls)
|
||||
|
||||
#configure gtksourceview
|
||||
sourceview = self.builder.get_object('gtksourceview')
|
||||
self.buffer = gtksourceview.Buffer()
|
||||
mgr = gtksourceview.style_scheme_manager_get_default()
|
||||
style_scheme = mgr.get_scheme('classic')
|
||||
if style_scheme:
|
||||
self.buffer.set_style_scheme(style_scheme)
|
||||
lang_manager = gtksourceview.language_manager_get_default()
|
||||
self.buffer.set_highlight_syntax(True)
|
||||
self.buffer.set_language(lang_manager.get_language("python"))
|
||||
# workaround bug in gtkcodebuffer
|
||||
gtkcodebuffer.SYNTAX_PATH.append(os.path.join(sys.prefix,"local", "share","pygtkcodebuffer","syntax"))
|
||||
|
||||
# Configure source viewer
|
||||
self.buffer = CodeBuffer(lang=SyntaxLoader("python"))
|
||||
self.buffer.connect("changed", self.text_changed)
|
||||
sourceview.set_buffer(self.buffer)
|
||||
self.builder.get_object("src_scrolledwindow").add(gtk.TextView(self.buffer))
|
||||
|
||||
#configure the terminal
|
||||
self.fd = -1
|
||||
|
||||
Loading…
Reference in New Issue
Block a user