Changeset 808
- Timestamp:
- 09/07/05 14:33:36 (3 years ago)
- Files:
-
- nbshell/trunk/ChangeLog (modified) (1 diff)
- nbshell/trunk/nbshell/PythonPlugin.py (modified) (2 diffs)
- nbshell/trunk/nbshell/Sheet.py (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
nbshell/trunk/ChangeLog
r792 r808 1 09.07.2005: 2 3 * Fixed a bug in copy/paste according to ticket #13 4 5 * Deleted help message in the beginning (ticket #16) 1 6 09.05.2005: 2 7 nbshell/trunk/nbshell/PythonPlugin.py
r773 r808 346 346 if len(self.line2log) == 0: 347 347 self.line2log.append(None) #the window always has at least one line 348 else: 349 self.line2log.append(None) #append ane empty line at the end 350 outtext.write('\n') 348 351 self.window.SetText(outtext.getvalue()) 349 352 self.window.GotoPos(self.window.GetTextLength()) … … 832 835 if not wx.TheClipboard.Open(): 833 836 return 834 if self.line2log[linenum] is None: 837 if self.line2log[linenum] is None: 838 #we are between cells 835 839 if wx.TheClipboard.IsSupported(wx.CustomDataFormat('nbCell')): 836 840 codecell = True 837 841 wx.TheClipboard.GetData(cellobj) 838 842 else: 843 #we are inside a cell. 839 844 if wx.TheClipboard.IsSupported(wx.CustomDataFormat('nbCode')): 840 845 codetext = True 841 846 wx.TheClipboard.GetData(codeobj) 847 #if we are at the last character in the cell and there is a nbCell object 848 elif ((len(self.line2log) -1 == linenum or #if linenum is the last line in the cell 849 self.line2log[linenum+1] is None or 850 self.line2log[linenum+1][0] != self.line2log[linenum][0]) and 851 #and caret is at the end of the line 852 pos == self.window.PositionFromLine(linenum) +\ 853 self.window.LineLength(linenum)): 854 linenum += 1 #this will be the place where we paste the cells 855 wx.TheClipboard.GetData(cellobj) 856 codecell = True 842 857 elif (wx.TheClipboard.IsSupported(wx.DataFormat(wx.DF_TEXT)) or 843 wx.TheClipboard.IsSupported(wx.DataFormat( DF_UNICODETEXT))):858 wx.TheClipboard.IsSupported(wx.DataFormat(wx.DF_UNICODETEXT))): 844 859 rawtext = True 845 860 wx.TheClipboard.GetData(textobj) nbshell/trunk/nbshell/Sheet.py
r771 r808 411 411 #We only need to set self.last 412 412 self.element = self.notebook.default_sheet() 413 textelem = etree.Element('para')414 textelem.text =\415 """ This is a temporary message, until I write proper help.416 Please use Return to insert, Shift-Return to execute inputs and Ctrl-Return to417 reexecute an input and all inputs that follow. """418 self.element[0:0] = [textelem]413 #textelem = etree.Element('para') 414 #textelem.text =\ 415 #""" This is a temporary message, until I write proper help. 416 #Please use Return to insert, Shift-Return to execute inputs and Ctrl-Return to 417 #reexecute an input and all inputs that follow. """ 418 # self.element[0:0] = [textelem] 419 419 # Now remove the old sheet and replace it with the new one 420 420 oldsheet = self.notebook.root.find('sheet')
