@@ -2604,7 +2604,7 @@ def ShowScrolledInfo(parent,txt,width=600,height=400,header='Warning info',
26042604 returns wx.ID_CANCEL
26052605 :returns: the wx Id for the selected button
26062606
2607- example ::
2607+ Example ::
26082608
26092609 res = ShowScrolledInfo(self.frame,msg,header='Please Note',buttonlist=[
26102610 ('Open', lambda event: event.GetEventObject().GetParent().EndModal(wx.ID_OK)),
@@ -3691,6 +3691,14 @@ def ItemSelector(ChoiceList, ParentFrame=None,
36913691 :returns: the selection index or None or a selection list if multiple is true
36923692
36933693 Called by GSASIIdataGUI.OnReOrgSelSeq() Which is not fully implemented.
3694+
3695+ Example::
3696+
3697+ choices = ('NXazint1d 1D file','NXazint1d 2D file')
3698+ sel = G2G.ItemSelector(choices, ParentFrame=ParentFrame,
3699+ header='Select file section',
3700+ title='Select the section of the file to read')
3701+ if sel is None: return False
36943702 '''
36953703 if multiple :
36963704 if useCancel :
@@ -6225,7 +6233,7 @@ def tblLine(dlg,pixels=3):
62256233 dlg .Destroy ()
62266234
62276235################################################################################
6228- def viewWebPage (parent ,URL ,size = (750 ,450 ),newFrame = False ,HTML = '' ):
6236+ def viewWebPage (parent ,URL = '' ,size = (750 ,450 ),newFrame = False ,HTML = '' ):
62296237 '''Creates a child wx.Frame with an OS-managed web browser. The window
62306238 is modeless, so it can be left open without affecting GSAS-II operations,
62316239 but will be closed when GSAS-II is ended if a ``parent`` window is
@@ -6264,7 +6272,7 @@ def copyURL(event):
62646272 lastWebFrame .wv .SetPage (HTML ,'' )
62656273 else :
62666274 lastWebFrame .wv .LoadURL (URL )
6267- return
6275+ return dlg
62686276 except :
62696277 pass
62706278 dlg = wx .Frame (parent ,size = size )
0 commit comments