这是选择我需要的列并以此创建文件的代码。但是如果画布多于20列,则画布太小而无法获取所有列。并退出画布。我尝试添加滚动条,但根本不起作用。我是python的新手。谢谢。
string connetionString = null;
MySqlConnection cnn ;
connetionString = "server=localhost;database=testDB;uid=root;pwd=abc123;";
cnn = new MySqlConnection(connetionString);
try
{
cnn.Open();
MessageBox.Show ("Connection Open ! ");
cnn.Close();
}
catch (Exception ex)
{
MessageBox.Show("Can not open connection ! ");
}
尝试滚动
import tkinter as tk
from tkinter import filedialog
import pandas as pd
打开文件
def on_configure(event):
canvas1.configure(scrollregion=canvas1.bbox('all'))
def browse():#to browse the file path
global f
global export_path
global export_path_ing