Mods
This commit is contained in:
		@@ -52,6 +52,7 @@ class Config:
 | 
				
			|||||||
    input_caret_color: str = "rgb(18, 18, 18)"
 | 
					    input_caret_color: str = "rgb(18, 18, 18)"
 | 
				
			||||||
    settings_json: Path
 | 
					    settings_json: Path
 | 
				
			||||||
    countries_json: Path
 | 
					    countries_json: Path
 | 
				
			||||||
 | 
					    filter_width: int = 150
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    @staticmethod
 | 
					    @staticmethod
 | 
				
			||||||
    def prepare() -> None:
 | 
					    def prepare() -> None:
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -194,7 +194,7 @@ class Window:
 | 
				
			|||||||
        Window.speed.currentIndexChanged.connect(Game.update_speed)
 | 
					        Window.speed.currentIndexChanged.connect(Game.update_speed)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        Window.filter = FilterLineEdit()
 | 
					        Window.filter = FilterLineEdit()
 | 
				
			||||||
        Window.filter.setFixedWidth(150)
 | 
					        Window.filter.setFixedWidth(Config.filter_width)
 | 
				
			||||||
        Window.filter.setPlaceholderText("Filter")
 | 
					        Window.filter.setPlaceholderText("Filter")
 | 
				
			||||||
        Window.filter.mousePressEvent = lambda e: Window.to_top()
 | 
					        Window.filter.mousePressEvent = lambda e: Window.to_top()
 | 
				
			||||||
        Window.filter.keyReleaseEvent = lambda e: Filter.filter(e)
 | 
					        Window.filter.keyReleaseEvent = lambda e: Filter.filter(e)
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user