Skip to content

Commit b72bdc9

Browse files
committed
- Title is now set only on the first run
1 parent 475f91c commit b72bdc9

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

NSE_Option_Chain_Analyzer.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -787,7 +787,8 @@ def get_dataframe(self) -> Optional[Tuple[pandas.DataFrame, str, str, float]]:
787787
return merged_inner, current_time, underlying_stock, points
788788

789789
def set_values(self) -> None:
790-
self.root.title(f"NSE-Option-Chain-Analyzer - {self.underlying_stock} - {self.expiry_date} - {self.sp}")
790+
if self.first_run:
791+
self.root.title(f"NSE-Option-Chain-Analyzer - {self.underlying_stock} - {self.expiry_date} - {self.sp}")
791792

792793
self.max_call_oi_val.config(text=self.max_call_oi)
793794
self.max_call_oi_sp_val.config(text=self.max_call_oi_sp)

0 commit comments

Comments
 (0)