You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It runs under Python 3.8 and Windows 8.1 x64. Although it's running a previous version here, but the same result in ver 2.0.0.1 too.
The followings are the result of after adding print() in the function CalcScopeLine() to show what errors I had got:
def CalcScopeLine(self, lineno):
print(lineno)
rvl = copy.copy(self.m_valid_lines) # m_valid_lines has strange result
rvl.reverse()
print(rvl)
for l in rvl: # JF@21DEC2022, this will cause a correct lineno (29) changes to an incorrect l (16)?
if lineno >= l:
break
return l
-----the main window
e:\Works\Python\ttkwidgets-master\examples>py ....\rpdb2.py example_calendar.py
....\rpdb2.py:296: DeprecationWarning: the imp module is deprecated in favour of importlib; see the module's
documentation for alternative uses
import imp
RPDB2 - The Remote Python Debugger, version RPDB_2_5_0,
Copyright (C) 2005-2009 Nir Aides, 2013-2017 Philippe Fremy
Type "help", "copyright", "license", "credits" for more information.
*** Password has been set to a random password.
*** Starting debuggee...
*** Attaching to debuggee...
*** Debug Channel is NOT encrypted.
*** Successfully attached to
*** 'e:\works\python\ttkwidgets-master\examples\example_calendar.py'.
*** Debuggee is waiting at break point for further commands.
bl
List of breakpoints:
Id State Line Filename-Scope-Condition-Encoding
bp 29
bl
List of breakpoints:
Id State Line Filename-Scope-Condition-Encoding
0 enabled 16 ...\examples\example_calendar.py
list
Source lines for thread 111776 from file 'e:\works\python\ttkwidgets-master\examples\example_calendar.py':
It runs under Python 3.8 and Windows 8.1 x64. Although it's running a previous version here, but the same result in ver 2.0.0.1 too.
The followings are the result of after adding print() in the function CalcScopeLine() to show what errors I had got:
-----the main window
e:\Works\Python\ttkwidgets-master\examples>py ....\rpdb2.py example_calendar.py
....\rpdb2.py:296: DeprecationWarning: the imp module is deprecated in favour of importlib; see the module's
documentation for alternative uses
import imp
RPDB2 - The Remote Python Debugger, version RPDB_2_5_0,
Copyright (C) 2005-2009 Nir Aides, 2013-2017 Philippe Fremy
Type "help", "copyright", "license", "credits" for more information.
Id State Line Filename-Scope-Condition-Encoding
Id State Line Filename-Scope-Condition-Encoding
0 enabled 16 ...\examples\example_calendar.py
C> 6 from ttkwidgets import Calendar
7 import tkinter as tk
8
9 def validate():
10 sel = calendar.selection
11 if sel is not None:
12 label.configure(text='Selected date: %s' % sel.st...
13
14 window = tk.Tk()
15 calendar = Calendar(window, year=2022, month=10, selectfo...
B 16 selectbackground='red')
17 calendar.pack()
18
19 tk.Button(window, text='Select', command=validate).pack()
20 label = tk.Label(window, text='Selected date:')
-----the other window
e:\Works\Python\rpdb2.py:296: DeprecationWarning: the imp module is deprecated in favour of importlib; see the
module's documentation for alternative uses
import imp
6
[285, 284, 277, 276, 275, 273, 271, 16, 15, 14, 9, 7, 6]
29
[285, 284, 277, 276, 275, 273, 271, 16, 15, 14, 9, 7, 6]
The example_calendar.py file has only 30 lines long. What is the line 271 and aboves?
and line 29 is missing obviously
The text was updated successfully, but these errors were encountered: