@@ -10574,7 +10574,7 @@ def RowSelect(event):
10574
10574
'Generate bonded','Select from list')
10575
10575
callList = (DrawAtomsDelete,DrawAtomStyle, DrawAtomLabel,
10576
10576
DrawAtomColor,SetViewPoint,AddSymEquiv,
10577
- AddSphere,TransformSymEquiv,
10577
+ AddSphere,AddBox, TransformSymEquiv,
10578
10578
FillCoordSphere,SelDrawList)
10579
10579
onRightClick = drawAtoms.setupPopup(lblList,callList)
10580
10580
drawAtoms.Bind(wg.EVT_GRID_CELL_RIGHT_CLICK, onRightClick)
@@ -10785,6 +10785,10 @@ def AddSymEquiv(event):
10785
10785
UpdateDrawAtoms()
10786
10786
drawAtoms.ClearSelection()
10787
10787
G2plt.PlotStructure(G2frame,data)
10788
+
10789
+ def AddBox(event):
10790
+ print('Box of enclosure, TBD')
10791
+
10788
10792
10789
10793
def AddSphere(event=None,selection=None,radius=None,targets=None):
10790
10794
cx,ct,cs,ci = G2mth.getAtomPtrs(data,draw=True)
@@ -16945,6 +16949,7 @@ def FillMenus():
16945
16949
G2frame.Bind(wx.EVT_MENU, SetViewPoint, id=G2G.wxID_DRAWVIEWPOINT)
16946
16950
G2frame.Bind(wx.EVT_MENU, AddSymEquiv, id=G2G.wxID_DRAWADDEQUIV)
16947
16951
G2frame.Bind(wx.EVT_MENU, AddSphere, id=G2G.wxID_DRAWADDSPHERE)
16952
+ G2frame.Bind(wx.EVT_MENU, AddBox, id=G2G.wxID_DRAWADDBOX)
16948
16953
G2frame.Bind(wx.EVT_MENU, TransformSymEquiv, id=G2G.wxID_DRAWTRANSFORM)
16949
16954
G2frame.Bind(wx.EVT_MENU, FillCoordSphere, id=G2G.wxID_DRAWFILLCOORD)
16950
16955
G2frame.Bind(wx.EVT_MENU, FillUnitCell, id=G2G.wxID_DRAWFILLCELL)
0 commit comments