itkdb-gtk 0.10.6__tar.gz → 0.10.7__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of itkdb-gtk might be problematic. Click here for more details.

Files changed (37) hide show
  1. {itkdb_gtk-0.10.6 → itkdb_gtk-0.10.7}/PKG-INFO +1 -1
  2. {itkdb_gtk-0.10.6 → itkdb_gtk-0.10.7}/itkdb_gtk/PetalReceptionTests.py +27 -23
  3. {itkdb_gtk-0.10.6 → itkdb_gtk-0.10.7}/itkdb_gtk/__init__.py +1 -1
  4. {itkdb_gtk-0.10.6 → itkdb_gtk-0.10.7}/itkdb_gtk.egg-info/PKG-INFO +1 -1
  5. {itkdb_gtk-0.10.6 → itkdb_gtk-0.10.7}/pyproject.toml +1 -1
  6. {itkdb_gtk-0.10.6 → itkdb_gtk-0.10.7}/README.md +0 -0
  7. {itkdb_gtk-0.10.6 → itkdb_gtk-0.10.7}/itkdb_gtk/CreateShipments.py +0 -0
  8. {itkdb_gtk-0.10.6 → itkdb_gtk-0.10.7}/itkdb_gtk/GetShipments.py +0 -0
  9. {itkdb_gtk-0.10.6 → itkdb_gtk-0.10.7}/itkdb_gtk/GlueWeight.py +0 -0
  10. {itkdb_gtk-0.10.6 → itkdb_gtk-0.10.7}/itkdb_gtk/ITkDB.desktop +0 -0
  11. {itkdb_gtk-0.10.6 → itkdb_gtk-0.10.7}/itkdb_gtk/ITkDB.svg +0 -0
  12. {itkdb_gtk-0.10.6 → itkdb_gtk-0.10.7}/itkdb_gtk/ITkDBlogin.py +0 -0
  13. {itkdb_gtk-0.10.6 → itkdb_gtk-0.10.7}/itkdb_gtk/ITkDButils.py +0 -0
  14. {itkdb_gtk-0.10.6 → itkdb_gtk-0.10.7}/itkdb_gtk/PanelVisualInspection.py +0 -0
  15. {itkdb_gtk-0.10.6 → itkdb_gtk-0.10.7}/itkdb_gtk/SensorUtils.py +0 -0
  16. {itkdb_gtk-0.10.6 → itkdb_gtk-0.10.7}/itkdb_gtk/ShowAttachments.py +0 -0
  17. {itkdb_gtk-0.10.6 → itkdb_gtk-0.10.7}/itkdb_gtk/ShowComments.py +0 -0
  18. {itkdb_gtk-0.10.6 → itkdb_gtk-0.10.7}/itkdb_gtk/ShowDefects.py +0 -0
  19. {itkdb_gtk-0.10.6 → itkdb_gtk-0.10.7}/itkdb_gtk/UploadModuleIV.py +0 -0
  20. {itkdb_gtk-0.10.6 → itkdb_gtk-0.10.7}/itkdb_gtk/UploadMultipleTests.py +0 -0
  21. {itkdb_gtk-0.10.6 → itkdb_gtk-0.10.7}/itkdb_gtk/UploadPetalInformation.py +0 -0
  22. {itkdb_gtk-0.10.6 → itkdb_gtk-0.10.7}/itkdb_gtk/UploadTest.py +0 -0
  23. {itkdb_gtk-0.10.6 → itkdb_gtk-0.10.7}/itkdb_gtk/WireBondGui.py +0 -0
  24. {itkdb_gtk-0.10.6 → itkdb_gtk-0.10.7}/itkdb_gtk/dashBoard.py +0 -0
  25. {itkdb_gtk-0.10.6 → itkdb_gtk-0.10.7}/itkdb_gtk/dbGtkUtils.py +0 -0
  26. {itkdb_gtk-0.10.6 → itkdb_gtk-0.10.7}/itkdb_gtk/readAVSdata.py +0 -0
  27. {itkdb_gtk-0.10.6 → itkdb_gtk-0.10.7}/itkdb_gtk/readGoogleSheet.py +0 -0
  28. {itkdb_gtk-0.10.6 → itkdb_gtk-0.10.7}/itkdb_gtk/untrash_component.py +0 -0
  29. {itkdb_gtk-0.10.6 → itkdb_gtk-0.10.7}/itkdb_gtk.egg-info/SOURCES.txt +0 -0
  30. {itkdb_gtk-0.10.6 → itkdb_gtk-0.10.7}/itkdb_gtk.egg-info/dependency_links.txt +0 -0
  31. {itkdb_gtk-0.10.6 → itkdb_gtk-0.10.7}/itkdb_gtk.egg-info/entry_points.txt +0 -0
  32. {itkdb_gtk-0.10.6 → itkdb_gtk-0.10.7}/itkdb_gtk.egg-info/requires.txt +0 -0
  33. {itkdb_gtk-0.10.6 → itkdb_gtk-0.10.7}/itkdb_gtk.egg-info/top_level.txt +0 -0
  34. {itkdb_gtk-0.10.6 → itkdb_gtk-0.10.7}/setup.cfg +0 -0
  35. {itkdb_gtk-0.10.6 → itkdb_gtk-0.10.7}/test/testAnimated.py +0 -0
  36. {itkdb_gtk-0.10.6 → itkdb_gtk-0.10.7}/test/testComponent.py +0 -0
  37. {itkdb_gtk-0.10.6 → itkdb_gtk-0.10.7}/test/test_holes.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: itkdb_gtk
3
- Version: 0.10.6
3
+ Version: 0.10.7
4
4
  Summary: A collection of Gtk based GUI to access ITkDB.
5
5
  Author-email: Carlos Lacasta <carlos.lacasta@cern.ch>
6
6
  Project-URL: Homepage, https://gitlab.cern.ch/atlas-itk/sw/db/itk-pdb-gtk-gui-utils
@@ -63,10 +63,14 @@ class PetalReceptionTests(dbGtkUtils.ITkDBWindow):
63
63
  lbl.set_xalign(0)
64
64
  grid.attach(lbl, 0, 0, 1, 1)
65
65
 
66
- self.SN = Gtk.Entry()
67
- self.SN.connect("focus-in-event", self.on_sn_enter)
68
- self.SN.connect("focus-out-event", self.on_sn_leave)
69
- grid.attach(self.SN, 1, 0, 1, 1)
66
+
67
+ self.SN = itkdb_gtk.dbGtkUtils.TextEntry()
68
+ self.SN.connect("text-changed", self.on_SN_changed)
69
+
70
+ #self.SN = Gtk.Entry()
71
+ #self.SN.connect("focus-in-event", self.on_sn_enter)
72
+ #self.SN.connect("focus-out-event", self.on_sn_leave)
73
+ grid.attach(self.SN.entry, 1, 0, 1, 1)
70
74
 
71
75
  self.alias = Gtk.Label(label="")
72
76
  grid.attach(self.alias, 2, 0, 1, 1)
@@ -109,28 +113,28 @@ class PetalReceptionTests(dbGtkUtils.ITkDBWindow):
109
113
 
110
114
  self.show_all()
111
115
 
112
- def on_sn_enter(self, entry, *args):
113
- """Enter in SN entry."""
114
- self._sn = entry.get_text()
116
+ def on_SN_changed(self, entry, value):
117
+ """New SN given. Ask in PDB,"""
118
+ if len(value) <= 0:
119
+ return None
120
+
121
+ self.query_db()
122
+ current_location = self.dbObject["currentLocation"]["code"]
123
+ dbGtkUtils.set_combo_iter(self.inst_cmb, current_location, 0)
115
124
 
116
- def on_sn_leave(self, entry, *args):
117
- """Leave SN entry."""
118
- sn = entry.get_text()
119
- if sn != self._sn:
120
- self.query_db()
121
- current_location = self.dbObject["currentLocation"]["code"]
122
- dbGtkUtils.set_combo_iter(self.inst_cmb, current_location, 0)
125
+ stg = self.dbObject["currentStage"]["name"]
126
+ self.stage.set_text(stg)
123
127
 
124
- stg = self.dbObject["currentStage"]["name"]
125
- self.stage.set_text(stg)
128
+ entry.set_text(self.dbObject["serialNumber"])
126
129
 
127
- alias = self.dbObject["alternativeIdentifier"]
128
- self.alias.set_text(alias)
130
+ alias = self.dbObject["alternativeIdentifier"]
131
+ self.alias.set_text(alias)
129
132
 
130
- npages = self.notebook.get_n_pages()
131
- for i in range(npages):
132
- page = self.notebook.get_nth_page(i)
133
- page.dict_dialog.factory_reset()
133
+ npages = self.notebook.get_n_pages()
134
+ for i in range(npages):
135
+ page = self.notebook.get_nth_page(i)
136
+ page.dict_dialog.factory_reset()
137
+
134
138
 
135
139
  def create_test_box(self, label, test_name, institute="IFIC"):
136
140
  """Create and add to notebook a test dialog.
@@ -178,7 +182,7 @@ class PetalReceptionTests(dbGtkUtils.ITkDBWindow):
178
182
  self.dbObject = None
179
183
  return
180
184
 
181
- print(json.dumps(self.dbObject, indent=3))
185
+ #print(json.dumps(self.dbObject, indent=3))
182
186
 
183
187
  def add_defect(self, btn):
184
188
  """Add a new defect."""
@@ -1,6 +1,6 @@
1
1
  """ itkdb-gtk python module
2
2
  """
3
- __version__ = "0.10.6"
3
+ __version__ = "0.10.7"
4
4
 
5
5
 
6
6
  def dash_board():
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: itkdb_gtk
3
- Version: 0.10.6
3
+ Version: 0.10.7
4
4
  Summary: A collection of Gtk based GUI to access ITkDB.
5
5
  Author-email: Carlos Lacasta <carlos.lacasta@cern.ch>
6
6
  Project-URL: Homepage, https://gitlab.cern.ch/atlas-itk/sw/db/itk-pdb-gtk-gui-utils
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "itkdb_gtk"
7
- version = "0.10.6"
7
+ version = "0.10.7"
8
8
  authors = [
9
9
  { name="Carlos Lacasta", email="carlos.lacasta@cern.ch" },
10
10
  ]
File without changes
File without changes