[DllImport("user32.dll")]
public static extern int EnumDisplaySettings(string deviceName, int modeNum, ref DEVMODE1 devMode);
public struct DEVMODE1 {
[MarshalAs(UnmanagedType.ByValTStr, SizeConst = 32)] public string dmDeviceName;
// детали
DEVMODE1 dm = new DEVMODE1();
User_32.EnumDisplaySettings(null, User_32.ENUM_CURRENT_SETTINGS, ref dm)) ;
update-alternatives --install /usr/bin/python3 python3 /usr/bin/python3.10 1
update-alternatives --config python3
There are 2 choices for the alternative python3 (providing /usr/bin/python3).
Selection Path Priority Status
------------------------------------------------------------
* 0 /usr/bin/python3.6 10 auto mode
1 /usr/bin/python3.10 1 manual mode
говорите 1
Press <enter> to keep the current choice[*], or type selection number: 1
python3 -V
Python 3.10.2
writer = csv.writer(csvfile, delimiter=' ', quotechar='|', quoting=csv.QUOTE_MINIMAL)
writer.writerow([name_of_restauran.texе])
import org.eclipse.swt.SWT;
public static void main(String[] args) {
display = new Display();
...
shell = new Shell(display,
SWT.SYSTEM_MODAL | /* SWT.TITLE | */ SWT.BORDER | SWT.RESIZE);
....
так топик закрываем решением или как ?